Permalink
Browse files

gzip site

  • Loading branch information...
1 parent 8a34c7e commit cdf51cb61a1330f40fcefdca5a1c7d7a8769cf68 @gpbmike committed Feb 7, 2015
Showing with 20 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 grunt/aliases.yaml
  3. +1 −1 grunt/clean.js
  4. +14 −0 grunt/copy.js
  5. +1 −1 grunt/gh-pages.js
  6. +1 −0 package.json
View
@@ -1,6 +1,7 @@
bower_components/
node_modules/
dist/
+compressed/
dev/
.tmp/
tmp/
View
@@ -28,6 +28,8 @@ build:
- 'cssmin'
- 'usemin'
- 'htmlmin'
+ - 'compress'
+ - 'copy:compress'
deploy:
- 'build'
View
@@ -1,4 +1,4 @@
module.exports = {
dev: ['./dev'],
- dist: ['./dist']
+ dist: ['./dist', './compressed']
};
View
@@ -40,5 +40,19 @@ module.exports = {
dest: './dist/CNAME'
}
]
+ },
+ compress: {
+ files: [
+ {
+ expand: true,
+ cwd: './dist/fonts/',
+ src: ['*.woff', '*.woff2'],
+ dest: './compressed/fonts/'
+ },
+ {
+ src: './dist/CNAME',
+ dest: './compressed/CNAME'
+ }
+ ]
}
};
View
@@ -1,6 +1,6 @@
module.exports = {
options: {
- base: 'dist'
+ base: 'compressed'
},
src: '**/*'
};
View
@@ -27,6 +27,7 @@
"ember-template-compiler": "^1.6.1",
"grunt": "~0.4.4",
"grunt-contrib-clean": "~0.5.0",
+ "grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-connect": "~0.7.1",
"grunt-contrib-copy": "~0.5.0",

0 comments on commit cdf51cb

Please sign in to comment.