Skip to content

[BUG] sass:compile + postcss => Loads CSS File Twice #156

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

Closed
mario-amazing opened this issue Jun 24, 2024 · 1 comment
Closed

[BUG] sass:compile + postcss => Loads CSS File Twice #156

mario-amazing opened this issue Jun 24, 2024 · 1 comment

Comments

@mario-amazing
Copy link

Description

In a Rails default app setup, the CSS file is loaded twice, resulting in both application.css and application-[digit].css being loaded.

Steps to Reproduce

  1. Create a new Rails app with the following setup:
    rails new newapp --css=bootstrap --javascript=esbuild -a propshaft --master
  2. Generate a scaffold for books:
    rails g scaffold books title:string author:string publication_year:integer
  3. Start the server and navigate to the application in your browser.
  4. Inspect the sources in the browser's developer tools.
Screenshot 2024-06-24 at 14 55 44

Expected Behavior

Only one version of the CSS file application-[digit].css should be loaded.

Actual Behavior

Both application.css and application-[digit].css are loaded.

Additional Information

  • Rails version: 7 and 8
  • Ruby version: 3.3
@mario-amazing
Copy link
Author

This is a Google Chrome feature, there is only one css file on the web
image

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

No branches or pull requests

1 participant