Closed midtownkc closed 1 year ago
This seems to be the same issue as https://github.com/rails/cssbundling-rails/issues/131 which has open PRs: https://github.com/rails/jsbundling-rails/pull/172 & https://github.com/rails/cssbundling-rails/issues/132. Until those are merged you could try using the gems with a GitHub source pointed at those PRs.
1.2.1 released that should fix this issue
Steps to reproduce
I have many rails 7 applications which uses cssbundling & jsbundling. Since updating to jsbundling-rails 1.2, the javascript no longer compiles when running
bundle exec rake
, the CSS bundling step is run twice. When runningbundle exec rake javascript:build
directly, it compiles the CSS instead of the JS. This behavior affects all of my rails 7 applications.package.json contents:
Expected behavior
When running jsbundling 1.1.2:
Actual behavior
When running jsbnundling-rails 1.2 Instead of installing the JS, it installs the CSS.
I am pining jsbundling to 1.1.2 as this is blocking our builds in CI.
System configuration
Rails 7.0.8 ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [arm64-darwin22]