mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
fix(building-rollup): respect user provided full paths
This commit is contained in:
5
.changeset/kind-snails-sneeze.md
Normal file
5
.changeset/kind-snails-sneeze.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@open-wc/building-rollup': patch
|
||||
---
|
||||
|
||||
Respect user provided absolute paths
|
||||
@@ -87,9 +87,9 @@ function createSpaConfig(options) {
|
||||
globIgnores: ['polyfills/*.js', 'legacy-*.js', 'nomodule-*.js'],
|
||||
navigateFallback: '/index.html',
|
||||
// where to output the generated sw
|
||||
swDest: path.join(process.cwd(), outputDir, 'sw.js'),
|
||||
swDest: path.join(outputDir, 'sw.js'),
|
||||
// directory to match patterns against to be precached
|
||||
globDirectory: path.join(process.cwd(), outputDir),
|
||||
globDirectory: path.join(outputDir),
|
||||
// cache any html js and css by default
|
||||
globPatterns: ['**/*.{html,js,css,webmanifest}'],
|
||||
skipWaiting: true,
|
||||
|
||||
Reference in New Issue
Block a user