Skip to content

Commit

Permalink
feat(grunt): minify JSON for production
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Aug 24, 2015
1 parent 8c88fec commit b26e182
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 @@ -200,6 +200,15 @@ module.exports = (grunt) ->
dest: "<%= config.dist %>/"
]

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

cssmin:
dist:
options:
Expand Down Expand Up @@ -285,6 +294,7 @@ module.exports = (grunt) ->
tasks: [
"htmlmin"
"xmlmin"
"minjson"
"cssmin"
]

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-git": "^0.3.5",
"grunt-jekyll": "^0.4.2",
"grunt-lesslint": "^1.1.14",
"grunt-minjson": "^0.3.0",
"grunt-postcss": "^0.5.5",
"grunt-rev": "^0.1.0",
"grunt-shell": "^1.1.2",
Expand Down

0 comments on commit b26e182

Please sign in to comment.