I\'m trying to use webpack-dev-server to compile files and start up a dev web server.
In my package.json
I have the script property set to:
I'll add my own special tale of Webpack --watch
woe to the wall of suffering here.
I was running
webpack --watch
in order to build a Typescript project. The compiled .js
files would update, but the bundle that the browser was seeing would not. So I was basically in the same position as the OP.
My problem came down to the watchOptions.ignored
parameter. The original author of the build config had set up ignored
as a filter function, which turns out to not be a valid value for that parameter. Replacing the filter function with an appropriate RegExp
got the --watch
build working again for me.