Skip to content

Commit

Permalink
feat(grunt): uglify service-worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jan 13, 2017
1 parent 6ea1fad commit a202fd9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ module.exports = (grunt) ->
]

uglify:
dist:
options:
report: "gzip"
compress:
drop_console: true
options:
report: "gzip"
compress:
drop_console: true

dist:
files: [
{
expand: true
Expand All @@ -140,6 +140,9 @@ module.exports = (grunt) ->
}
]

sw:
files: "<%= config.dist %><%= config.base %>/service-worker.js": [ "<%= config.dist %><%= config.base %>/service-worker.js" ]

less:
options:
strictMath: true
Expand Down Expand Up @@ -713,7 +716,7 @@ module.exports = (grunt) ->
grunt.registerTask "build", "Build site with jekyll", [
"clean:main"
"coffeelint"
"uglify"
"uglify:dist"
"lesslint"
"less:dist"
"postcss:dist"
Expand All @@ -726,6 +729,7 @@ module.exports = (grunt) ->
"cacheBust"
"concurrent:dist"
"sw_precache"
"uglify:sw"
"cleanempty"
]

Expand Down

0 comments on commit a202fd9

Please sign in to comment.