diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 4e271060b..c066c9a8d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -297,11 +297,7 @@ module.exports = (grunt) -> baseDir: "<%= config.dist %>" workerFile: "service-worker.js" workerDir: "<%= config.dist %><%= config.base %>" - staticFileGlobs: [ - "**/*.{css,html,jpg,gif,png,svg}" - "**/img/**.*" - "**/js/**.js" - ] + staticFileGlobs: "<%= config.cfg.service_worker.files %>" usebanner: options: diff --git a/_app/_includes/_amsf.html b/_app/_includes/_amsf.html index 71d46c78e..27022ca15 100644 --- a/_app/_includes/_amsf.html +++ b/_app/_includes/_amsf.html @@ -434,7 +434,7 @@ Service Worker {% endcomment %} {% capture amsf_service_worker %} - {% if site.service_worker == true and site.dev == false %} + {% if site.service_worker.enabled == true and site.dev == false %}