You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jackchoumine
changed the title
[Bug]: static resource can not resolve from plublic path in css file.
[Bug]: static resource can not resolve from public path in css file.
Sep 10, 2024
Rsbuild uses css-loader by default to handle CSS resources.You can use the cssLoader.url option to filter the public resource path like the example above.
If you use experiments.css, you can use rspack.IgnorePlugin to ignore public resources path. webpack/webpack#14893 (comment)
Version
version info:
Details
There are some img in public:
use it in vue3 component:
in css part, it can not reslove img path:
rsbuild/core@^0.4.6 work well
Related issue: #3374
Someone say put img into
src/assets
path then use img by relative path. It is not good migration way.It is a barrier for migration from vite.
Reproduce link
无
Reproduce Steps
无
The text was updated successfully, but these errors were encountered: