Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Add base assets to precompilation #3

Closed
wants to merge 2 commits into from
Closed

Add base assets to precompilation #3

wants to merge 2 commits into from

Conversation

jrnk
Copy link
Contributor

@jrnk jrnk commented May 11, 2016

Since administrate adds the .svg to the precompilation path: https://github.com/thoughtbot/administrate/blob/master/lib/administrate/engine.rb#L23
What was missing to have rake assets:precompile work with the needed .js and .css was this line. I could have chosen to add *.js or the like instead of full filename, but then it would precompile files that were not needed in the end (since they're referenced in these base files).

@jrnk
Copy link
Contributor Author

jrnk commented May 11, 2016

The proposed fix strangely doesn't work for the js, only for the css.
Maybe this has to do with the issues mentioned in thoughtbot/administrate#566 with regards to loading assets at the page level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant