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

Replace sass-rails with cssbundling-rails #1939

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

palhimalaya
Copy link

@palhimalaya palhimalaya commented Dec 7, 2024

Summary

This pull request replaces sass-rails with cssbundling-rails for asset precompilation. And also help in asset precompilation fail while using mission_control-jobs or solid_queue_dashboard.

Changes

  1. Gemfile:

    • Removed sass-rails gem.
    • Added cssbundling-rails gem.
  2. Configuration:

    • Updated asset pipeline configuration to use cssbundling-rails.
    • Migrated SCSS files to use the new setup.
    • Disabled the default CSS compression by setting Rails.application.config.assets.css_compressor = nil in assets.rb. This ensures that CSS compression is handled by the cssbundling-rails gem.
    • Added a build:css script in package.json to compile SCSS files into CSS:
    "build:css": "sass ./app/assets/stylesheets/application.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules"
  3. Tailwind CSS Configuration:

    • Ensured Tailwind CSS configuration is compatible with the new setup.

Gemfile Outdated Show resolved Hide resolved
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.

2 participants