Skip to content

Commit

Permalink
fix(building-rollup): respect user provided full paths
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Oct 25, 2020
1 parent 1ed49ff commit eadbd12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-snails-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@open-wc/building-rollup': patch
---

Respect user provided absolute paths
4 changes: 2 additions & 2 deletions packages/building-rollup/src/createSpaConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eadbd12

Please sign in to comment.