1devServer: {
2index: 'index.html',
3contentBase: path.join(__dirname, 'dist'),
4compress: true,
5hot: true, //Hot module replacement
6port: 9000,
7writeToDisk:true,
8open: 'chrome' //open in chrome
9}
10
11this solved my question of keeping output files generated intact.