Plugin asset compilation through Rails pipeline does not handle image/asset urls in SCSS files correctly
Fixes #23764: Ensure proper plugin asset generation for SCSS
If image-url or asset-url are used in SCSS then they are not properly
generated for plugins. This change has the nice side effect of
both simplifying the code and re-using the existing Rails and Sprockets
environments as much as possible.