Build: watch and dev mode webpack improvements (#18153)

* Ignore `node_modules` in watch mode

* Simplify development setup
This commit is contained in:
Oleg Gaidarenko
2019-07-20 07:46:41 +03:00
committed by GitHub
parent bc0da1bbfc
commit eac1459832
4 changed files with 12 additions and 3 deletions
+4
View File
@@ -10,6 +10,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
const IgnoreNotFoundExportPlugin = require("./IgnoreNotFoundExportPlugin.js");
module.exports = merge(common, {
mode: 'development',
entry: {
app: ['webpack-dev-server/client?http://localhost:3333', './public/app/dev.ts'],
},
@@ -34,6 +35,9 @@ module.exports = merge(common, {
proxy: {
'!/public/build': 'http://localhost:3000',
},
watchOptions: {
ignored: /node_modules/
}
},
optimization: {