rails / cssbundling-rails

Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js.
MIT License
565 stars 83 forks source link

Clobber task uses hardcoded path #64

Closed ErikSchierboom closed 5 months ago

ErikSchierboom commented 2 years ago

In clobber.rake, line 4 has a hardcoded path

rm_rf Dir["app/assets/builds/[^.]*.css"], verbose: false

I think this should actually iterate over the configured assets directory/directories.

iHiD commented 2 years ago

Specifically, we think this should probably be any css files inside Rails.application.config.assets.paths. The same issue will also apply to jsbuilding-rails but we considered it better to have one source of truth for this discussion rather than opening two issues

dhh commented 2 years ago

Please do investigate a PR.