I have a very simple project:
appdir
+- app
+- main.js
+- build
+- bundle.js
+- index.html
+- webpack.config.js
The webpack.config.js:
var path=require("path");
module.exports = {
entry: path.resolve(__dirname, "./app/main.js"),
output: {
path: path.resolve(__dirname, "build"),
filename: "bundle.js"
}
};
After I changs the main.js, webpack-dev-server seems like it detects the change and performs a rebundle the bundle.js, but the browser still recieve the old content of main.js.
I start the server by executing webpack-dev-server webpack.config.js
Any ideas?