wrapper-webpack-plugin icon indicating copy to clipboard operation
wrapper-webpack-plugin copied to clipboard

Code gets removed even with `afterOptimizations` to `true`

Open ChocolateLoverRaj opened this issue 4 years ago • 0 comments

I'm using the plugin like this:

new WrapperPlugin({
 header: (fileName, { hash }) => {
    return fileName === 'serviceWorker.bundle.js' ? `/* hash: ${hash} */` : ''
  },
  afterOptimizations: true
})

When running in development mode, the comment is there, but when running in production mode, the comment is not there.

I think this might be because of #11.

ChocolateLoverRaj avatar Jul 14 '21 21:07 ChocolateLoverRaj