This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
Asset Precompile fails when using asset_path helper in a js file. #125
Closed
Description
In the https://github.com/tobsch/mediaelement_rails gem, there's an index.js
file with the following:
mejs.MediaElementDefaults.flashName =
'<%= asset_path 'mediaelement_rails/flashmediaelement.swf' %>'
In order to set up a shim for it in my requirejs.yml
file, I've got the following, which works fine in development mode:
paths:
mediaelement: "mediaelement_rails/index"
shim:
mediaelement: ["jquery"]
When I try to precompile assets, I see:
mediaelement_rails/flashmediaelement.swf isn't precompiled.
I've even updated the config.assets.precompile
setting, but I think this might be a chicken and egg problem.
I've figured out that requirejs:precompile
runs before assets:precompile
, and that's why I see this error.
Would re-ordering the precompile steps have any bad effects?
Metadata
Metadata
Assignees
Labels
No labels