Reputation: 2040
I start learning about webpack configuration and cannot see the effect of changes made on files. My webpack.config.js
...
devServer: {
watchFiles: ["src/**/*.js", "css/**/*", "src/**/*.html"],
static: {
directory: path.join(__dirname, "dist"),
},
liveReload: true,
port: 5000,
open: true,
},
...
Thanks in advance.
Upvotes: 0
Views: 236
Reputation: 2040
Solved... Add devMiddleware like here:
devServer: {
devMiddleware: {
writeToDisk: true,
},
Upvotes: 1