-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
perf: rn端sass文件引入路径包含别名时支持~,例如: @import ’~@/common/base-style.scss‘ #13284
Conversation
alias: {
'@/common/base-core': path.resolve(__dirname, '..', 'src/base-core')
}
import ’~@/common/base-core/base-style.scss‘ 你的alias 不应该是 |
和sass-loader 一致, 主要是项目中有 带’~‘的别名引入 |
这种情况 |
项目中修改是当然可以的,只是提了一个兼容方案而已 |
这个 PR 做了什么? (简要描述所做更改)
在样式文件中引入别名支持'~'
例如
alias: {
'@/common/base-core': path.resolve(__dirname, '..', 'src/base-core')
}
@import ’~@/common/base-core/base-style.scss‘
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: