Sega
Sega
Some refer to the need to use a `terser` , but `terser` does'nt work properly at this case too.
@dave105010 Because I don't use `rails assets:precompile` any time but I use `config.assets.compile = true` in config file (see the issue). In development mode, everything works fine until `:uglifier` is...
@itsalongstory `terser` have same problem. It' not solution!
@itsalongstory No way! I don't see a solution, so I stayed on Bootstrap v5.1.3 for now. The fact is that technology is advancing, and RoR is no longer keeping up...
@itsalongstory Same problem as `uglifier` - not work correctly when I use Bootstrap 5.2
@huda-kh I suggested a very simple solution for fix this bug - just 2 lines of code. My fix failed the some tests and was successfully ignored. It is **not...
@huda-kh Yes, agree - using ```config.assets.resolve_assets_in_css_urls``` is also very good solution. If it works correctly for you in all cases.
#### [More detailed comments for this issue](https://github.com/rails/sprockets/issues/747#issuecomment-1172858797)
I found in [sprockets-rails 3.2.2 → 3.3.0](https://my.diffend.io/gems/sprockets-rails/3.2.2/3.3.0) changes that make it. It is from version `sprockets 3.3.0` that such incorrect processing is observed. in file [data/lib/sprockets/rails/asset_url_processor.rb](https://my.diffend.io/gems/sprockets-rails/3.2.2/3.3.0#d2h-706091) ADDED ```ruby module Sprockets...
In `sprockets-rails 3.4.2`, they probably noticed that there can be a relative path, but for some reason they decided that it must begin with **`./`**: ```ruby REGEX = /url\(\s*["']?(?!(?:\#|data|http))(?\.\/)?(?[^"'\s)]+)\s*["']?\)/ ```...