Skip to content

Commit

Permalink
feat(grunt): add html_trim support
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Feb 11, 2017
1 parent 885cd35 commit 72e0f35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ module.exports = (grunt) ->
# src: "**/*.html"
# dest: "<%= config.dist %>"

html_trim:
dist:
files: [
expand: true
cwd: "<%= config.dist %>"
src: ["**/*.html"]
dest: "<%= config.dist %>"
]

assets_inline:
options:
jsDir: "<%= config.dist %>"
Expand Down Expand Up @@ -703,6 +712,7 @@ module.exports = (grunt) ->
"uncss_inline"
"cacheBust"
"concurrent:dist"
"html_trim"
"service_worker"
"uglify:sw"
"cleanempty"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"grunt-conventional-changelog": "^6.1.0",
"grunt-csscomb": "^3.1.1",
"grunt-git": "^1.0.0",
"grunt-html-trim": "^0.1.0",
"grunt-jekyll": "^0.4.4",
"grunt-leading-quotes": "0.0.13",
"grunt-minjson": "^0.4.0",
Expand Down

0 comments on commit 72e0f35

Please sign in to comment.