Merge branch 'image-min' into develop
17
Gruntfile.js
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
BIN
common/dist/sprites/spritesmith0.png
vendored
|
Before Width: | Height: | Size: 306 KiB After Width: | Height: | Size: 209 KiB |
BIN
common/dist/sprites/spritesmith1.png
vendored
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 24 KiB |
BIN
common/dist/sprites/spritesmith2.png
vendored
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 101 KiB |
BIN
common/dist/sprites/spritesmith3.png
vendored
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 89 KiB |
BIN
common/dist/sprites/spritesmith4.png
vendored
|
Before Width: | Height: | Size: 734 KiB After Width: | Height: | Size: 510 KiB |
BIN
common/dist/sprites/spritesmith5.png
vendored
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 225 KiB |
BIN
common/dist/sprites/spritesmith6.png
vendored
|
Before Width: | Height: | Size: 313 KiB After Width: | Height: | Size: 195 KiB |
|
|
@ -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",
|
||||
|
|
|
|||