-
Notifications
You must be signed in to change notification settings - Fork 109
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
Webpacker migration - WIP #3280
Conversation
… bootstrap & jquery-ui dependencies
Generated by 🚫 Danger |
Thanks for this @benjaminfaure I will review and test later this week. |
I had some issues setting up the font-awesome gem with the sass compiler so replaced it by the npm package. At the moment some tests are failing because some of the icons are not displayed properly, I'll have to fix them. |
Thank you for your feedback Brian. I'll add a rails task for the assets cleaning & the build folder creation. The npm version of FontAwesome seems to put placeholder in some cases, when an icon is missing or not included properly (which is nice). In your case, the arrows briefly appear, that's weird. Right now we're using sprockets that includes CSS/JS contained in gems but it doesn't seem to work with JS/CSSBundling anymore. There's a new official solution called Propshaft (https://github.com/rails/propshaft) but I didn't want to include yet another gem just for FontAwesome, that's why i tried to use the npm package :) |
I managed to fix the missing icon problems. I removed the import of the FontAwesome JS, it wasn't executed with AJAX call. We just need the Sass imports. |
excellent! I will have a look and test it out next week. Thanks @benjaminfaure! |
…nto webpacker_migration
Fixes #3185
webpacker
gemjsbundling-rails
app/javascript/packs/application.js
toapp/javascript/application.js
ruby-sass
gemcssbundling-rails
gem and DartSass JS librarysass
package (See below).font-awesome-sass
gem and used@fortawesome/fontawesome-free
npm packageYou should see some compilation warning for the CSS, they are mainly caused by math functions called by the bootstrap sass files. I think they should disapear once we migrate to Bootstrap 4/5