Created
April 22, 2015 16:24
-
-
Save hachi-eiji/9f5168a8b4742d6716ae to your computer and use it in GitHub Desktop.
Sample GulpFile
This file contains hidden or 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
var gulp = require('gulp-help')(require('gulp')); | |
var argv = require('minimist')(process.argv.slice(2)); | |
gulp.task('minify-js', 'JavaScriptをMinifyします', function() { | |
var jsMinify = argv.jsMinify === 'true' ? true :false; | |
if(jsMinify){ | |
console.log('JavaScriptをMinifyするね'); | |
} else { | |
console.log('JavaScriptをMinifyしないよ'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment