scalacenter / scalajs-bundler

https://scalacenter.github.io/scalajs-bundler
Other
235 stars 101 forks source link

(newb) Is there a way to get the image optimisation and CSS rewriting? #405

Closed yatesco closed 3 years ago

yatesco commented 3 years ago

Hi there - real newbie here :-).

Using create-react-app (etc.) the production process bundles all images into a single sprite stream and rewrites the CSS to refer to that singe image.

Is this the responsibility of this plugin, and if so, how, or should I be looking at ScalaJS-react for this?

Thanks!

cquiroz commented 3 years ago

Not really a responsibility of the plugin but you can make webpack do it. Scalajs-bundler in turn calls webpack

yatesco commented 3 years ago

Thanks - I’ll close this issue but if you have any links you could send, I would be very grateful :-)