Pretty much the title.In package.json/scripts I have..."browserifyHome": "browserify src/static/javascripts/home.js > dist/static/javascripts/bundleHome.js"If I wanted to pull that line out into a separate js file is it possible and if so what would the syntax be? I've only found examples of using browserify from a terminal so far.Can you have a separate js file with something like..var browserify = require('browserify');browserify(__dirname + 'src/static/javascripts/home.js', __dirname + 'dist/static/javascripts/bundleHome.js');cheers again!
Submitted January 20, 2018 at 12:09PM by longcraft
No comments:
Post a Comment