2017-08-10 08:02:20 -06:00
|
|
|
var devServerPort = 3808;
|
2017-08-10 10:01:59 -06:00
|
|
|
var path = require("path");
|
2017-08-15 09:58:02 -06:00
|
|
|
var genConfig = require("./webpack.base");
|
|
|
|
var conf = genConfig();
|
|
|
|
|
|
|
|
conf.output = {
|
|
|
|
// must match config.webpack.output_dir
|
|
|
|
path: path.join(__dirname, '..', 'public', 'webpack'),
|
|
|
|
publicPath: '//localhost:' + devServerPort + '/webpack/',
|
|
|
|
filename: '[name].js'
|
|
|
|
};
|
2017-08-10 10:01:59 -06:00
|
|
|
|
2017-08-15 09:58:02 -06:00
|
|
|
conf.devServer = {
|
|
|
|
port: devServerPort,
|
|
|
|
disableHostCheck: true,
|
|
|
|
host: "0.0.0.0",
|
|
|
|
headers: { 'Access-Control-Allow-Origin': '*' }
|
|
|
|
};
|
2017-08-10 10:01:59 -06:00
|
|
|
|
2017-08-15 09:58:02 -06:00
|
|
|
module.exports = conf;
|