beefy icon indicating copy to clipboard operation
beefy copied to clipboard

Transform not working when used with other beefy options

Open kagant15 opened this issue 8 years ago • 3 comments

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?

kagant15 avatar Apr 28 '16 20:04 kagant15

👍 this is the first thing I tried; cause I need the babelify transforms... not working for me either

lunelson avatar Jun 16 '16 06:06 lunelson

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.

gfpacheco avatar Aug 08 '17 22:08 gfpacheco

(please close)

lunelson avatar Jun 22 '20 16:06 lunelson