Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to specify multiple browserify transforms on the command line?

How do I specify multiple transforms in browserify using the command-line interface?

Specifically, I'm trying to use babelify, hbsfy (handlebars), and coffeeify (coffeescript).

like image 219
mark Avatar asked Mar 28 '16 19:03

mark


1 Answers

Specify each transform as a separate -t [ transform ] argument. Pay attention to white space in the -t options.

browserify jsbundle.js \
-t [ babelify --presets [ es2015 react ] ] \
-t [ hbsfy ] -t [ coffeeify ] \
--extension=jsx --extension=hbs --extension=coffee
like image 160
mark Avatar answered Oct 28 '22 04:10

mark