Merge branch 'image-min' into develop

This commit is contained in:
Blade Barringer 2015-06-27 16:41:24 -05:00
commit 2dd7894a2c
9 changed files with 17 additions and 1 deletions

View file

@ -75,6 +75,20 @@ module.exports = function(grunt) {
sprite: sprite,
imagemin: {
spritesmith: {
options: {
optimizationLevel: 7
},
files: [{
expand: true,
flatten: true,
src: ["common/dist/sprites/*.png"],
dest: "common/dist/sprites/"
}]
}
},
cssmin: {
dist: {
options: {
@ -209,7 +223,7 @@ module.exports = function(grunt) {
});
// Register tasks.
grunt.registerTask('compile:sprites', ['clean:sprite', 'sprite', 'cssmin']);
grunt.registerTask('compile:sprites', ['clean:sprite', 'sprite', 'imagemin', 'cssmin']);
grunt.registerTask('build:prod', ['loadManifestFiles', 'clean:build', 'browserify', 'uglify', 'stylus', 'cssmin', 'copy:build', 'hashres','prepare:staticNewStuff']);
grunt.registerTask('build:dev', ['browserify', 'stylus', 'prepare:staticNewStuff']);
grunt.registerTask('build:test', ['test:prepare:translations', 'build:dev']);
@ -250,6 +264,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-spritesmith');
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-hashres');
grunt.loadNpmTasks('grunt-karma');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 KiB

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 KiB

After

Width:  |  Height:  |  Size: 510 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 KiB

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 KiB

After

Width:  |  Height:  |  Size: 195 KiB

View file

@ -92,6 +92,7 @@
"event-stream": "^3.2.2",
"expect.js": "~0.2.0",
"glob": "^4.3.5",
"grunt-contrib-imagemin": "^0.9.4",
"istanbul": "^0.3.14",
"karma": "~0.10.2",
"karma-chai-plugins": "~0.1.0",