diff --git a/build/service-worker-prod.js b/build/service-worker-prod.js index 8b8493e6..338b15dd 100644 --- a/build/service-worker-prod.js +++ b/build/service-worker-prod.js @@ -16,7 +16,7 @@ window.addEventListener('load', function() { if ('serviceWorker' in navigator && (window.location.protocol === 'https:' || isLocalhost)) { - navigator.serviceWorker.register('{{ .BaseURL }}/sw.js') + navigator.serviceWorker.register('{{ .baseurl }}/sw.js') .then(function(registration) { // updatefound is fired if service-worker.js changes. registration.onupdatefound = function() { diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 9751b880..76a1106d 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -119,7 +119,7 @@ var webpackConfig = merge(baseWebpackConfig, { new SWPrecacheWebpackPlugin({ cacheId: 'File Browser', filename: 'sw.js', - replacePrefix: '{{ .BaseURL }}/', + replacePrefix: '{{ .baseurl }}/', staticFileGlobs: ['dist/**/*.{js,html,css}'], minify: true, stripPrefix: 'dist/' diff --git a/index.html b/index.html index cd8446db..c982ab20 100644 --- a/index.html +++ b/index.html @@ -6,29 +6,29 @@ - +