Not sure how to handle referencing binary files in "CSS in JS" solutions. Webpack does this by default by referencing everything as absolute. So I'm wondering if there's a solution outside of Webpack?
Asked
Active
Viewed 64 times
2 Answers
0

James Yang
- 1,306
- 4
- 15
- 25
-
more like updating the static reference (jpg|gif|png|svg) with absolute url. I think its more of a build tool's job by now. – chriz Nov 01 '16 at 20:17
0
You can create a JS constant with an absolute path and use it as a prefix for your path to an image and co.

Oleg Isonen
- 1,463
- 10
- 10