Make WordPress Core

Changeset 27172


Ignore:
Timestamp:
02/13/2014 08:00:47 AM (11 years ago)
Author:
nacin
Message:

Dev tools: Add grunt imagemin:core task for optimizing images pre-commit.

Adds grunt-contrib-imagemin, so an npm install will be required.

props jorbin, wonderboymusic for initial patches.
see #25169.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r27170 r27172  
    304304        },
    305305        jsvalidate:{
    306             options:{
     306            options: {
    307307                globals: {},
    308308                esprimaOptions:{},
     
    316316                    ]
    317317                }
     318            }
     319        },
     320        imagemin: {
     321            core: {
     322                expand: true,
     323                cwd: SOURCE_DIR,
     324                src: [
     325                    'wp-{admin,includes}/images/**/*.{png,jpg,gif,jpeg}',
     326                    'wp-includes/js/tinymce/skins/wordpress/images/*.{png,jpg,gif,jpeg}'
     327                ],
     328                dest: SOURCE_DIR
    318329            }
    319330        },
  • trunk/package.json

    r27053 r27172  
    2323    "grunt-sass": "~0.10.0",
    2424    "grunt-jsvalidate": "~0.2.2",
     25    "grunt-contrib-imagemin" : "~0.4.1",
    2526    "matchdep": "~0.3.0"
    2627  }
Note: See TracChangeset for help on using the changeset viewer.