Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Enable overriding filePath in config and flags (#150)
Browse files Browse the repository at this point in the history
If using with bazel.io, the output directory for assets to cache is read-only, so you want to scan the root in blaze-out but create the sw.js file somewhere else.
  • Loading branch information
yangchenyun authored and jeffposnick committed Aug 5, 2016
1 parent c781a8f commit 5699e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function setDefaults(cli, configFileFlags) {

compositeFlags.swFile = compositeFlags.swFile || configFileFlags.swFile ||
'service-worker.js';
compositeFlags.swFilePath = path.join(compositeFlags.root,
compositeFlags.swFilePath = compositeFlags.swFilePath || configFileFlags.swFilePath || path.join(compositeFlags.root,
compositeFlags.swFile);

compositeFlags.cacheId = compositeFlags.cacheId ||
Expand Down

0 comments on commit 5699e5d

Please sign in to comment.