Skip to content

Commit

Permalink
feat(grunt): add support for better minified output
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jun 1, 2016
1 parent b91aea6 commit 1934283
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
14 changes: 12 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,15 @@ module.exports = (grunt) ->
dest: "<%= config.dist %>"
]

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

leading_quotes:
options:
elements: "p, h1, h2, h3, h4, h5, h6"
Expand Down Expand Up @@ -578,7 +587,7 @@ module.exports = (grunt) ->
"less:serve"
"postcss:serve"
"jekyll:serve"
"leading_quotes:main"
"leading_quotes"
"browserSync"
"watch"
]
Expand All @@ -604,9 +613,10 @@ module.exports = (grunt) ->
"postcss:dist"
"csscomb"
"jekyll:dist"
"leading_quotes:main"
"leading_quotes"
"cssmin"
"assets_inline"
"uncss_inline"
"cacheBust"
"concurrent:dist"
"usebanner"
Expand Down
2 changes: 0 additions & 2 deletions TODOS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Todos

- try load-grunt-config
- responsive tables
- try Service Worker
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"grunt-rev": "^0.1.0",
"grunt-shell": "^1.2.1",
"grunt-text-replace": "^0.4.0",
"grunt-uncss-inline": "^1.0.1",
"grunt-xmlmin": "^0.1.7",
"jit-grunt": "^0.10.0",
"time-grunt": "^1.3.0"
Expand Down

0 comments on commit 1934283

Please sign in to comment.