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

automatically create nondigest non versioned files on asset precompile #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doits
Copy link
Contributor

@doits doits commented Mar 7, 2016

The way non digest assets are created changed a little bit from always
copying the whole to only copying changed files on each run. With this,
the task can automatically be invoked on each precompile run and only
copies something if needed.

The only Rails config change to make this gem work now is to add a
Rails.application.config.assets.precompile += %w( webshims/* ) to an
initializer.

IMO this simplifies installation and updating process a lot (even though only in the non versioned directoy case).

If this PR could be accepted, I can update the readme accordingly, too.

Credit: I basically pulled this out of https://github.com/galetahub/ckeditor/blob/cf7483fe9d202613e5702fc4ffe894c94d50a6ee/lib/tasks/ckeditor.rake.

The way non digest assets are created changed a little bit from always
copying the whole to only copying changed files on each run.  With this,
the task can automatically be invoked on each precompile run and only
copies something if needed.

The only Rails config change to make this gem work now is to add a
`Rails.application.config.assets.precompile += %w( webshims/* )` to an
initializer.
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

Successfully merging this pull request may close these issues.

1 participant