beefy
beefy copied to clipboard
Transform not working when used with other beefy options
I'm creating a React.js project and using babelify for my transformer My project structure:
app
-> main.js
-> newIndex.html
beefy main.js -- -t [babelify --presets [react es2015] ]
works :thumbsup:
beefy main.js --live
works :thumbsup:
beefy main.js --index=newIndex.html
works :thumbsup:
beefy main.js --index=newIndex.html --live
works :thumbsup:
beefy main.js -- -t [babelify --presets [react es2015] ] --live
fails :thumbsdown:
beefy main.js -- -t [babelify --presets [react es2015] ] --index=newIndex.html
fails :thumbsdown:
beefy main.js -- -t [babelify --presets [react es2015] ] --index=newIndex.html --live
fails :thumbsdown:
When the babelify transform is specified before the other --options the transform works but the other options don't take. The same is true for the reverse, if for example --live is specified before -- -t [babelify --presets [react es2015] ] then the beefy server will reload when you save a file as you would expect it to but then the transformation doesn't work.
No error is provided when this happens.
Any ideas why this transform doesn't work alongside other options?
👍 this is the first thing I tried; cause I need the babelify transforms... not working for me either
A bit late, but try:
beefy main.js --index=newIndex.html --live -- -t [babelify --presets [react es2015] ]
As far as I know beefy sends all arguments that come after --
to browserify and doesn't care about them. Sending the beefy arguments before it should work.
(please close)