rails / cssbundling-rails

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

Check assets:clobber is defined before enhancing #71

Closed HLFH closed 2 years ago

HLFH commented 2 years ago

https://github.com/rails/cssbundling-rails/commit/a749ca29a91ee0b5cbc884b02505631576b09e43 suggests that "Sprockets is not a dependency", so we should not assume that the assets:precompile AND assets:clobber tasks will be defined. If it's not there, we should just skip enhancing it.

Related to: https://github.com/rails/cssbundling-rails/pull/59

Fixes issue Don't know how to build task 'assets:clobber'

cc @dhh @richardTowers