Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Added fix for rails 5 precompile (sprockets-rails 3) #269

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

Conversation

thegillis
Copy link

As described in issue #268, requirejs-rails broke during our production assets:precompile. Our working environment was:

  • rails (4.2.4)
  • sprockets (3.4.0)
  • sprockets-rails (2.3.3)

Unfortunately when we did a major upgrade to the following:

  • rails (5.0.0)
  • sprockets (3.6.3)
  • sprockets-rails (3.1.1)

And the asset precompile failed.

It mainly seems to be several small removed deprecated functions. Sprockets logical paths seem to contain the biggest changes.

To get both our old environment and new environment to build, we needed this change.

One of the biggest missing pieces to this commit is bower js support. This is mainly because we don't use it. I'm open to suggestions with what to use.

https://github.com/MediaFactual/requirejs-rails/blob/rails5/lib/tasks/requirejs-rails_tasks.rake#L138

Note that this might also solve Issue #257 . We have also been looking forward to #193 since this also breaks a lot of our production asset precompile js files.

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.

None yet

1 participant