Skip to content

Commit eadbd12

Browse files
committed
fix(building-rollup): respect user provided full paths
1 parent 1ed49ff commit eadbd12

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/kind-snails-sneeze.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@open-wc/building-rollup': patch
3+
---
4+
5+
Respect user provided absolute paths

packages/building-rollup/src/createSpaConfig.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ function createSpaConfig(options) {
8787
globIgnores: ['polyfills/*.js', 'legacy-*.js', 'nomodule-*.js'],
8888
navigateFallback: '/index.html',
8989
// where to output the generated sw
90-
swDest: path.join(process.cwd(), outputDir, 'sw.js'),
90+
swDest: path.join(outputDir, 'sw.js'),
9191
// directory to match patterns against to be precached
92-
globDirectory: path.join(process.cwd(), outputDir),
92+
globDirectory: path.join(outputDir),
9393
// cache any html js and css by default
9494
globPatterns: ['**/*.{html,js,css,webmanifest}'],
9595
skipWaiting: true,

0 commit comments

Comments
 (0)