zepio/config/webpack-dev.config.js

19 lines
402 B
JavaScript
Raw Normal View History

2018-11-23 10:41:50 -08:00
const path = require('path');
const mainWebpack = require('./webpack-main.config');
2018-11-26 13:17:57 -08:00
const outputPath = path.resolve(__dirname, '../', 'build');
2018-11-23 10:41:50 -08:00
module.exports = {
output: {
path: outputPath,
filename: 'bundle.js',
chunkFilename: '[name].chunk.js',
publicPath: '/',
},
devServer: {
historyApiFallback: true,
host: process.env.HOST || '0.0.0.0',
},
...mainWebpack,
};