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

support webpacker 2.0 #345

Closed
wants to merge 3 commits into from
Closed

support webpacker 2.0 #345

wants to merge 3 commits into from

Conversation

iguchi1124
Copy link
Contributor

close #344

@PikachuEXE
Copy link
Member

Please see #346 for potential alternative

# RAILS_GROUP and RAILS_ENV are not defined. We need to reload the
# assets environment in this case.
# Rake::Task["assets:environment"].invoke if Rake::Task.task_defined?("assets:environment")
Rake::Task["assets:sync"].invoke if defined?(AssetSync) && AssetSync.config.run_on_precompile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you running assets:sync separately in your project? I needed to make a change so that this task is run after webpacker:compile (when defined). See #341 for my solution, I will update it so it works with Webpacker 2.0 - inspired by your changes

@iguchi1124 iguchi1124 closed this Jun 25, 2017
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.

Rails 5.1 / webpacker support
3 participants