What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-25 05:23:12
clean-webpack-plugin webpack-dev-server issue
webpack dev server causing the recompile and thus invocation of clean webpack plugin, which clears dist folder. but to keep files there in dist folder you must instruct it to write to disk. then after every recompile it writes files to disk this can be ... Add solution -
Javascript 2021-08-27 19:45:02
clean-webpack-plugin clearing dist folder
devServer: { index: 'index.html', contentBase: path.join(__dirname, 'dist'), compress: true, hot: true, //Hot module replacement port: 9000, writeToDisk:true, open: 'chrome' //open in chrome } this solved my question of keeping output files generated int... Add solution
Best helpers
Ranking is empty