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

Add Webpacker #3

Merged
merged 11 commits into from
Feb 16, 2018
Merged

Add Webpacker #3

merged 11 commits into from
Feb 16, 2018

Conversation

mberlanda
Copy link
Owner

Add Webpacker to use the JavaScript pre-processor and bundler webpack 3.
The change is the logical evolution #2 Add YARN for NodeJS assets.

Changelog

  • added webpacker gem to Gemfile
  • ran bundle exec rake webpack:install
  • ran bundle exec rake webpack:install:react for a the next step of the application refactoring
  • refactoring of application vendor stylesheets
  • refactoring of application vendor javascripts

(Solved) Issues

Refactoring of application vendor assets

The first step after including yarn has been

# config/initializers/assets.rb
Rails.application.config.assets.paths << Rails.root.join('node_modules')

This implied some issues:

In the answers to these questions I documented how I solved all the problems

@mberlanda mberlanda temporarily deployed to cheidelacoriera-staging February 9, 2018 21:47 Inactive
@mberlanda mberlanda merged commit 4752a41 into master Feb 16, 2018
@mberlanda mberlanda mentioned this pull request Mar 10, 2018
@mberlanda mberlanda deleted the webpacker branch January 1, 2020 22:33
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