Created
March 5, 2013 13:57
-
-
Save shirokuro331/5090476 to your computer and use it in GitHub Desktop.
grunt-contrib-imagemin メモ
https://github.com/gruntjs/grunt-contrib-imagemin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
imagemin: { // Task | |
dist: { // Target | |
options: { // Target options | |
optimizationLevel: 3 | |
}, | |
files: { // Dictionary of files | |
'dist/': 'src/*.png' // dist is output directory name. src directory png file are optimization | |
} | |
} | |
} | |
}); | |
// gruntタスクライブラリを読み込み | |
grunt.loadNpmTasks('grunt-contrib-imagemin'); | |
// デフォルトで実行するタスク | |
grunt.registerTask('default', 'imagemin'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment