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

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -