webpack documentation chm code example
Example: 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 intact.