turn webpack middleware into middleware

fix HMR middleware, and some loopback boilerplate cleanup
This commit is contained in:
2017-01-22 12:02:04 -07:00
parent c85b2e2702
commit f9e237da09
13 changed files with 75 additions and 61 deletions

View File

@@ -7,7 +7,9 @@ const baseConfig = require('./webpack.base');
const ROOT = path.resolve(__dirname, '..', '..');
module.exports = merge(baseConfig, {
entry: ['webpack-hot-middleware/client'],
plugins: [
// http://vue-loader.vuejs.org/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"',
@@ -23,5 +25,7 @@ module.exports = merge(baseConfig, {
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency',
}),
new webpack.HotModuleReplacementPlugin(),
],
});