diff --git a/packages/config/index.js b/packages/config/index.js index f34f48408..f6c847eb6 100644 --- a/packages/config/index.js +++ b/packages/config/index.js @@ -29,6 +29,8 @@ function applyDefaultConfig(config) { locations: [], basePath: '', assetPath: '', + workerPath: '/sw.js', + workerFile: null, browsers: '> 1%, last 2 versions, Firefox ESR', node: 'current', envVars: { HOPS_MODE: 'dynamic' }, diff --git a/packages/spec/config.js b/packages/spec/config.js index 7ec94eb89..ea86f94c3 100644 --- a/packages/spec/config.js +++ b/packages/spec/config.js @@ -34,6 +34,8 @@ describe('config', function() { appDir: process.cwd(), buildDir: path.resolve('build'), cacheDir: path.resolve(path.join('node_modules', '.cache', 'hops')), + workerFile: null, + workerPath: '/sw.js', }); });