/**
 * https://github.com/GoogleChrome/sw-precache#command-line-interface
 */
module.exports = {
  root: 'build',
  staticFileGlobs: [
    'build/javascripts/main.js',
    'build/stylesheets/**.css',
    'build/images/**/*.*',
  ],
  stripPrefix: 'build/'
}

/**
 * https://github.com/GoogleChrome/sw-precache#command-line-interface
 */
module.exports = {
  root: 'build',
  swFile: 'sw-precache.js',
  staticFileGlobs: [
    'build/javascripts/main.js',
    'build/stylesheets/**.css',
    'build/images/**/*.*',
  ],
  stripPrefix: 'build/'
}

Rename service-worker.js -> sw-precache.js for other worker names
feat: Rename service-worker.js -> sw-precache.js for other worker names
