-
Notifications
You must be signed in to change notification settings - Fork 123
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
Assets manifest does not include some of the stylesheets when they have the same content #188
Comments
Hi Owen! Thanks for providing detailed information 😃 Try renaming the files from Since Vite currently does not expose assets to plugins, As a result, Vite Ruby can't currently support files with double extensions. Question: what is the reason to use the |
@ElMassimo thanks for answering.
Note: Based on my quick review of vite-ruby gem, it is calling Btw: This is the content generated in
Thanks again! |
@owen2345 The example application seems to be using
|
@ElMassimo the problem is the same: If you want, I can create a repo with the issue. But basically, it is a clean rails 7 app with the latest version of vite-ruby. |
@owen2345 It's likely that these example files have the exact same content, causing Rollup to generate a single file. Please provide a minimal reproduction where the content of each stylesheet is different. |
@ElMassimo You are right. I had similar content in all 3 sample stylesheet files. |
It's definitely a limitation, though I don't think there are valid use cases to have the same content in different files 😄 Still, I'd like to improve this in the future, provided that Vite provides access to the processed assets. |
bundle update vite_ruby
.Description 📖
Some stylesheet entrypoints are not recognized while building
Reproduction 🐞
Given
app/frontend/entrypoints/application.sass.scss
andapp/frontend/entrypoints/sample.sass.scss
andapp/frontend/entrypoints/sample2.sass.scss
When generating the assets before running tests (
bundle exec rspec
) viabin/vite clobber && bin/vite build --mode=test --force
Then the expected entrypoints are not generated (see screenshot) and thus it fails with the following when running tests
Vite Ruby Info
``` bin/vite present?: true vite_ruby: 3.0.8 vite_rails: 3.0.5 rails: 7.0.1 node: v12.22.5 ```Run
bin/rake vite:info
and provide the output:Logs 📜
If not providing a reproduction:
Output
Run
DEBUG=vite-plugin-ruby:* bin/vite dev
orDEBUG=vite-plugin-ruby:* bin/vite build
and provide the output:Note:
sample.sass.scss
was not included inassets-manifest
Screenshots 📷
Provide console or browser screenshots of the problem.
The text was updated successfully, but these errors were encountered: