Skip to content

Commit

Permalink
feat(config): add service worker configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauberNerd authored and dmbch committed Feb 19, 2018
1 parent d8b1ff3 commit ec7f016
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function applyDefaultConfig(config) {
locations: [],
basePath: '',
assetPath: '',
workerPath: '<assetPath>/sw.js',
workerFile: null,
browsers: '> 1%, last 2 versions, Firefox ESR',
node: 'current',
envVars: { HOPS_MODE: 'dynamic' },
Expand Down
2 changes: 2 additions & 0 deletions packages/spec/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
});

Expand Down

0 comments on commit ec7f016

Please sign in to comment.