How to configure importScript when using vue-cli-pwa plugin

You can find v4 documentation here, or just read the source code.

In short, if you still want to use GenerateSW mode:

module.exports = {
  pwa: {
    workboxOptions: {
      importWorkboxFrom: 'local'
    }
  }
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top