-
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
taro3如何全局注入less #9578
Labels
enhancement
New feature or request
Comments
@LiangFuzhi 解决了吗? |
转用uniapp了 |
webpackChain(chain, webpack) {
chain.module
.rule("less")
.oneOf("0") // 小程序平台需要这个,h5平台这行去掉
.use("style-resource")
.loader("style-resources-loader")
.options({
patterns: [path.resolve(__dirname, "..", "src/styles/index.less")]
// injector: 'append'
});
} |
@Binbiubiubiu 用了还是不行 |
"@tarojs/taro": "3.6.23",没用 |
试过可以,使用的是NutUI-v4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
taro3如何全局注入less
试了两种方法都没生效
options.less
编译报错
The text was updated successfully, but these errors were encountered: