...
|
...
|
@@ -2,16 +2,15 @@ |
|
|
|
|
|
const path = require('path');
|
|
|
const webpack = require('webpack');
|
|
|
const WebpackDevServer = require('webpack-dev-server');
|
|
|
let baseConfig = require('./webpack.base.config.js');
|
|
|
|
|
|
baseConfig = baseConfig('dev');
|
|
|
baseConfig.devtool = '#inline-source-map';
|
|
|
baseConfig.devtool = '#eval';
|
|
|
baseConfig.output.publicPath = 'http://localhost:5001/';
|
|
|
baseConfig.devServer = {
|
|
|
host: '0.0.0.0',
|
|
|
port: 5001,
|
|
|
contentBase: [path.join(__dirname, '../'), path.join(__dirname, '../bundle/')],
|
|
|
contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')],
|
|
|
publicPath: baseConfig.output.publicPath,
|
|
|
hot: true,
|
|
|
inline: true,
|
...
|
...
|
@@ -19,7 +18,8 @@ baseConfig.devServer = { |
|
|
// clientLogLevel: 'error',
|
|
|
compress: true,
|
|
|
stats: {
|
|
|
colors: true
|
|
|
colors: true,
|
|
|
children: false
|
|
|
},
|
|
|
headers: {
|
|
|
'Access-Control-Allow-Origin': '*'
|
...
|
...
|
|