-
Beta Was this translation helpful? Give feedback.
Answered by
SoonIter
Jun 3, 2024
Replies: 1 comment
-
应该没有这种用法,~是用来导入 node_modules 的三方包用的,你可以改为 https://webpack.js.org/loaders/css-loader/#url 如果你一定要这么用的话可以这么做 // rsbuild.config.ts
export default defineConfig({
source: {
alias: {
'@': './src',
+ '~@': './src',
},
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SoonIter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
应该没有这种用法,~是用来导入 node_modules 的三方包用的,你可以改为
@import '@/style/a.scss';
https://webpack.js.org/loaders/css-loader/#url
如果你一定要这么用的话可以这么做
// rsbuild.config.ts export default defineConfig({ source: { alias: { '@': './src', + '~@': './src', }, },