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
Post a Comment