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.