Skip to content

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