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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -