[英]How do you deal with referencing binary files inside “CSS in JS” solutions like JSS and Aphrodite?
Not sure how to handle referencing binary files in "CSS in JS" solutions. 不确定如何处理“ JS中的CSS”解决方案中的引用二进制文件。 Webpack does this by default by referencing everything as absolute.
默认情况下,Webpack通过将所有内容都引用为绝对值来做到这一点。 So I'm wondering if there's a solution outside of Webpack?
所以我想知道Webpack之外是否有解决方案?
您可以创建带有绝对路径的JS常量,并将其用作图像和co路径的前缀。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.