mirror of
https://github.com/xodio/xod.git
synced 2026-03-03 07:24:03 +01:00
28 lines
681 B
JavaScript
28 lines
681 B
JavaScript
const path = require('path');
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
const webpack = require('webpack');
|
|
const merge = require('webpack-merge');
|
|
/* eslint-enable import/no-extraneous-dependencies */
|
|
const baseConfig = require('./webpack.config.js');
|
|
|
|
const pkgpath = subpath => path.join(__dirname, subpath);
|
|
|
|
module.exports = merge.smart(baseConfig, {
|
|
devtool: 'eval-source-map',
|
|
output: {
|
|
publicPath: 'http://localhost:8080/',
|
|
},
|
|
devServer: {
|
|
hot: true,
|
|
host: 'localhost',
|
|
port: 8080,
|
|
contentBase: pkgpath('dist'),
|
|
compress: true,
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env.IS_DEV': true,
|
|
}),
|
|
],
|
|
});
|