browserify-rails icon indicating copy to clipboard operation
browserify-rails copied to clipboard

How to support js.coffee.erb files?

Open Kadrian opened this issue 10 years ago • 1 comments

Hi, I manage to use browserify with the coffeeify option set:

config.browserify_rails.commandline_options = '-t coffeeify --extension=".js.coffee"'

However, as soon as I rename a file map.js.coffee.erb, because I want to use asset_path browserify doesn't recognize anymore that it's supposed to be Coffeescript and I get a parse error.

Can you help me there? Am I forgetting some configuration? Or is it not possible to use both .js.coffee and js.coffee.erb files with browserify / coffeeify?

Kadrian avatar Jul 28 '15 15:07 Kadrian

Hi @Kadrian,

I am no longer maintaining the project and ownership of the project has moved here: https://github.com/browserify-rails/browserify-rails.

If you submit your issue there, you'd probably get some more eyes on your issue.

Cheers, Henry

hsume2 avatar Jul 28 '15 19:07 hsume2