Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assets_precompile will skip when i use js.erb #314

Closed
huobazi opened this issue May 11, 2015 · 1 comment
Closed

assets_precompile will skip when i use js.erb #314

huobazi opened this issue May 11, 2015 · 1 comment

Comments

@huobazi
Copy link

huobazi commented May 11, 2015

Hi i have a question,

when i use js.erb with server side code in it

var SomeVar = <%= TIMEZONES_CONSTANTS.to_json %>

the task assets_precompile will skip

see also railsware/js-routes#146

@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

You are changing TIMEZONES_CONSTANT but not chaging anything in js.erb file?

mina uses diff when checking to see if any assets are changed, and wont pick up this kind of change.

easiest way for you to force a precopile is to add an empty line in your js file :)

@d4be4st d4be4st closed this as completed Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants