Ticket #25169: 25169.diff
| File 25169.diff, 1.4 KB (added by , 12 years ago) |
|---|
-
Gruntfile.js
30 30 src: [ 31 31 '**', 32 32 '!**/.{svn,git}/**', // Ignore version control directories. 33 '!wp-includes/version.php' // Exclude version.php 33 '!wp-includes/version.php', // Exclude version.php 34 '!**/*.{png,jpg,gif,jpeg}' // Exclude images. They are handled by the imagemin task 34 35 ], 35 36 dest: BUILD_DIR 36 37 }, … … 314 315 } 315 316 } 316 317 }, 318 imagemin: { 319 options: { 320 321 }, 322 files: { 323 expand: true, 324 cwd: SOURCE_DIR, 325 src: '**/*.{png,jpg,gif,jpeg}', 326 dest: BUILD_DIR 327 } 328 }, 317 329 watch: { 318 330 all: { 319 331 files: [ … … 356 368 // Register tasks. 357 369 358 370 // Copy task. 359 grunt.registerTask('copy:all', ['copy:files', 'copy:version' ]);371 grunt.registerTask('copy:all', ['copy:files', 'copy:version', 'imagemin']); 360 372 361 373 // RTL task. 362 374 grunt.registerTask('rtl', ['cssjanus:core', 'cssjanus:colors']); -
package.json
22 22 "grunt-cssjanus": "~0.2.2", 23 23 "grunt-sass": "~0.10.0", 24 24 "grunt-jsvalidate": "~0.2.2", 25 "grunt-contrib-imagemin" : "~0.4.1", 25 26 "matchdep": "~0.3.0" 26 27 } 27 28 }