Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2206 from rht/develop
Browse files Browse the repository at this point in the history
[TASK] pagespeed perf: optimize img files
  • Loading branch information
mrajvanshy committed Feb 24, 2015
2 parents 7a24540 + dafc8c1 commit 5e579b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-cache-bust');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
Expand Down Expand Up @@ -324,6 +325,17 @@ module.exports = function(grunt) {
}]
}
},
imagemin: {
// note, this is done after 'copy' task so as not to rewrite the original img files
dynamic: {
files: [{
expand: true,
cwd: 'build/bundle/web/img/',
src: ['**/*.{png,svg,gif}'],
dest: 'build/bundle/web/img/'
}]
}
},
jade_l10n_extractor: {
templates: {
options: {
Expand Down Expand Up @@ -505,6 +517,7 @@ module.exports = function(grunt) {
'cssmin',
'deps',
'copy',
'imagemin',
'cacheBust']);

// Dev - builds the web version of the client excluding any locales
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-cssmin": "^0.12.1",
"grunt-contrib-imagemin": "^0.9.3",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-watch": "~0.5.3",
"grunt-jade-l10n-extractor": "~0.1.2",
Expand Down

0 comments on commit 5e579b2

Please sign in to comment.