Skip to content

Code gets removed even with afterOptimizations to true #17

@ChocolateLoverRaj

Description

@ChocolateLoverRaj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions