examples/web/webpack.development.config.js
const webpack = require('webpack');
const baseWebpackConfig = require('./webpack.base.config.js');
module.exports = Object.assign({}, baseWebpackConfig, {
devServer: {
port: 8080,
historyApiFallback: {
index: './public/index.html'
}
},
plugins: [
new webpack.DefinePlugin({
__DEV__: true,
'process.env': {
NODE_ENV: JSON.stringify('development')
}
})
]
});