Skip to content

Instantly share code, notes, and snippets.

@mzgoddard
Forked from morenoh149/gruntfile.js
Last active January 4, 2016 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzgoddard/8678026 to your computer and use it in GitHub Desktop.
Save mzgoddard/8678026 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
image_resize: {
options: { width: 16, height: 16, overwrite: true, upscale: true, crop: true },
your_target: { 'www/assets/icon.png':'www/assets/icon16.png' },
your_target_36: {
options: { width: 36, height: 36 },
files: { 'www/assets/icon.png':'www/assets/icon36.png' }
}
}
});
grunt.loadNpmTasks('grunt-image-resize');
grunt.registerTask('default', ['image_resize']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment