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

link_tree ignores scss files #679

Open
yourtallness opened this issue Jun 1, 2020 · 2 comments
Open

link_tree ignores scss files #679

yourtallness opened this issue Jun 1, 2020 · 2 comments

Comments

@yourtallness
Copy link

yourtallness commented Jun 1, 2020

Expected behavior

I would expect link_tree processes all files contained in the directory tree.

Actual behavior

sccs files are not being picked up, I have to resort to link-ing to them directly.

System configuration

  • Rails 5.2.3
  • Sprockets 4.0
  • Ruby 2.5.8

Example config

This doesn't work, application.css.scss & assets.css.scss are considered missing from the precompile list:

//= link_tree ../stylesheets/customers
//= link_tree ../javascripts/customers

This works:

//= link_tree ../stylesheets/customers
//= link_tree ../javascripts/customers
//= link customers/application.css
//= link customers/assets.css

Please advise, TIA

@schneems
Copy link
Member

Hello! Thanks for opening up an issue. In order to move forwards with this issue I'll need an example app that reproduces the behavior (https://www.codetriage.com/example_app).

@emirkin
Copy link

emirkin commented Jun 10, 2021

@schneems , I encountered a similar issue, although in my case I have application.scss referencing a .css file via *= require somefile,

You can use my example code from #708 . Just add a simple .css file somewhere under /stylesheets and reference it from application.scss via *= require -- and you will get the error I am seeing.

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

3 participants