shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

document usage of writeToFileEmit with webpack-clean plugin #267

Closed devkral closed 3 years ago

devkral commented 3 years ago

Documentation Is:

Please Explain in Detail...

webpack-clean plugin deletes manifest.json if used with webpack-dev-server. It should be documented that you have to exclude manifest.json like this

new CleanWebpackPlugin({
            verbose: true,
//important elsewise minifest.json is deleted
            cleanOnceBeforeBuildPatterns: ['**/*', '!manifest.json'],
        }),
shellscape commented 3 years ago

Thanks, I'll add this to the README.

gaurav5430 commented 2 years ago

Thanks, this saved me from opening a new issue for manifest not being generated with webpack-dev-server