Is it possible to run the command browserify file.js > bundle.js
without using the command prompt ?
Can I run this command from a javascript file?
Is it possible to run the command browserify file.js > bundle.js
without using the command prompt ?
Can I run this command from a javascript file?
It sounds like you are looking for something like gulp. (http://gulpjs.com/)
Here's a good article to get you started: https://viget.com/extend/gulp-browserify-starter-faq
I think if you use script tag in package.json
"scripts": {
"start": "browserify file.js -o bundle.js"
},
it may work without using command prompt