You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble getting Require.js to recognize the files loaded by the coffee-script preprocessor. Require.js implicitly adds a '.js' extension to all the referenced locations. It can't find the files loaded by the CS preprocessor because they are loaded into the browser with the '.coffee' extension.
The file contents are being compiled to js... is there any way we can change the extension to match so that everything will act consistently?
The text was updated successfully, but these errors were encountered:
precompiling all my assets to js, and having karma reference those. This has the disadvantage of slowing down the feedback loop a lot, as I have to run the build script every time, and the karma watcher doesn't work properly with regenerated files, so I end up restarting karma and the browsers as well.
Using an absolute reference to each file. E.G. /base/app/client/js/models/cart.coffee. This lets me use the autowatcher, but isn't a maintainable solution. Any time there are sub-dependencies defined in the application code this approach will break.
Neither one of these are particularly good. I think we'd avoid the whole issue by having the filenames converted to '.js'.
I'm having trouble getting Require.js to recognize the files loaded by the coffee-script preprocessor. Require.js implicitly adds a '.js' extension to all the referenced locations. It can't find the files loaded by the CS preprocessor because they are loaded into the browser with the '.coffee' extension.
The file contents are being compiled to js... is there any way we can change the extension to match so that everything will act consistently?
The text was updated successfully, but these errors were encountered: