-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using absolute path to reference online resources (non-local resources) in less #1518
Comments
Where is the escape character??? |
Please provide a reproduce repo. |
[email protected]:ChenXplorer/reproduction_for_rspress.git yarn && yarn dev 同时,本来想同时复现playground一个偶发报错问题,但现在引入playground组件就启动卡住了,你可以config文件注释了的 // plugins: [pluginPlayground()], 打开试试 |
You can try to use source: {
alias: {
"/image/font": false,
},
}, |
这个会有其他问题,你可以看看 web-infra-dev/rsbuild#1948 |
如果你是想要保留 css 里面的 url 字符串的话,可以直接改 css-loader 的配置 tools: {
cssLoader: {
url: {
filter: (url) => {
if (/\/image\/font/.test(url)) {
return false;
}
return true;
},
},
},
}, |
Originally posted by @ChenXplorer in #1515
The text was updated successfully, but these errors were encountered: