workbox-build
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ module.exports = { | ||
'web app directory.', | ||
'invalid-file-manifest-name': 'The File Manifest Name must have at lease ' + | ||
'invalid-file-manifest-name': 'The File Manifest Name must have at least ' + | ||
'one character.', | ||
@@ -70,3 +70,3 @@ 'unable-to-get-file-manifest-name': 'Unable to get a file manifest name.', | ||
'useless-glob-pattern': `One of the glob patterns doesn't match any files. ` + | ||
`Please remove of fix the following: `, | ||
`Please remove or fix the following: `, | ||
'bad-template-urls-asset': `There was an issue reading one of the provided ` + | ||
@@ -73,0 +73,0 @@ `templatedUrls.`, |
@@ -122,3 +122,3 @@ const path = require('path'); | ||
let workboxSWPath; | ||
let workboxSWImportPath; | ||
let destDirectory = path.dirname(swDest); | ||
@@ -130,5 +130,8 @@ return copyWorkboxSW(destDirectory) | ||
// (i.e. not include build/). | ||
workboxSWPath = path.relative(destDirectory, libPath); | ||
input.globIgnores.push(libPath); | ||
input.globIgnores.push(swDest); | ||
workboxSWImportPath = path.relative(destDirectory, libPath); | ||
// we will be globbing in the globDirectory, so we need to ignore relative | ||
// to that path. | ||
input.globIgnores.push(path.relative(globDirectory, libPath)); | ||
input.globIgnores.push(path.relative(globDirectory, swDest)); | ||
}) | ||
@@ -142,3 +145,3 @@ .then(() => { | ||
manifestEntries, | ||
workboxSWPath, | ||
workboxSWImportPath, | ||
globDirectory, | ||
@@ -145,0 +148,0 @@ input |
@@ -9,3 +9,3 @@ const path = require('path'); | ||
module.exports = | ||
(swSrc, manifestEntries, wbSWPathRelToSW, globDirectory, options) => { | ||
(swSrc, manifestEntries, workboxSWImportPath, globDirectory, options) => { | ||
options = options || {}; | ||
@@ -92,3 +92,3 @@ try { | ||
manifestEntries: manifestEntries, | ||
wbSWPathRelToSW, | ||
workboxSWImportPath, | ||
navigateFallback: options.navigateFallback, | ||
@@ -95,0 +95,0 @@ navigateFallbackWhitelist: options.navigateFallbackWhitelist, |
{ | ||
"name": "workbox-build", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A module that integrates into your build process, helping you generate a manifest of local files that workbox-sw should precache.", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"mkdirp": "^0.5.1", | ||
"workbox-sw": "^1.0.0" | ||
"workbox-sw": "^1.0.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55884
1047
Updatedworkbox-sw@^1.0.1