sprockets icon indicating copy to clipboard operation
sprockets copied to clipboard

link_tree ignores scss files

Open yourtallness opened this issue 5 years ago • 2 comments

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

yourtallness avatar Jun 01 '20 14:06 yourtallness

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).

schneems avatar Sep 25 '20 21:09 schneems

@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.

emirkin avatar Jun 10 '21 18:06 emirkin