Skip to content

Commit 51c6eb2

Browse files
committed
fix: service worker path
1 parent efff472 commit 51c6eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/webpack/createBaseConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ module.exports = function createBaseConfig ({
221221
config
222222
.plugin('injections')
223223
.use(require('webpack/lib/DefinePlugin'), [{
224-
BASE_URL: JSON.stringify(siteConfig.base),
224+
BASE_URL: JSON.stringify(siteConfig.base || '/'),
225225
GA_ID: siteConfig.ga ? JSON.stringify(siteConfig.ga) : false,
226226
SW_ENABLED: !!siteConfig.serviceWorker
227227
}])

0 commit comments

Comments
 (0)