javascript - Pass package name into Gulp task -


is possbile pass things such package.json name gulp task? instance, like:

<%= pkg.name %> 

you can require package.json , it'll return object.

var pkg = require('./package.json');  gulp.task('default', function() {    console.log(pkg.name); } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -