Skip to content
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

sass全局使用、一直引入不进去、求大声帮忙 #3800

Closed
lifudea opened this issue Jul 12, 2019 · 14 comments
Closed

sass全局使用、一直引入不进去、求大声帮忙 #3800

lifudea opened this issue Jul 12, 2019 · 14 comments

Comments

@lifudea
Copy link

lifudea commented Jul 12, 2019

Uploading 1562926660(1).png…
1562926708(1)
1562926727(1)
sass一直引入不进入

@taro-bot
Copy link

taro-bot bot commented Jul 12, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam
Copy link
Member

taro 版本多少

@lifudea
Copy link
Author

lifudea commented Jul 16, 2019 via email

@luckyadam
Copy link
Member

升级到最新版本再试试

@lifudea
Copy link
Author

lifudea commented Jul 16, 2019

还是不可以、

@lifudea
Copy link
Author

lifudea commented Jul 16, 2019

目前1.3.9版本

@moonreplace
Copy link

1.3默认用的是dart, 试试这个能行不?
const sass = require('node-sass'); sassLoaderOption: { implementation: sass, includePaths: [nodeModulesPath, styleBasePath] },
@lifudea

@lifudea
Copy link
Author

lifudea commented Jul 18, 2019

我试试了下不可以、不知道是不是我写错了 。是放publish里 plugins:{sassLoaderOption: { implementation: sass, includePaths: ['src/mixin.scss'] }} 么......

@o-x-o
Copy link

o-x-o commented Jul 18, 2019

webpack的sass配置都是在 module 里配的。可在taro里却是在plugins里配而且感觉丝毫不起作用。

@moonreplace
Copy link

我试试了下不可以、不知道是不是我写错了 。是放publish里 plugins:{sassLoaderOption: { implementation: sass, includePaths: ['src/mixin.scss'] }} 么......

publicPath: packConfig.nonImagePublicPath,
staticDirectory: 'static',
sassLoaderOption: {
implementation: sass,
includePaths: [nodeModulesPath, styleBasePath]
},
直接放在config根目录下

@moonreplace
Copy link

webpack的sass配置都是在 module 里配的。可在taro里却是在plugins里配而且感觉丝毫不起作用。

直接放在config根目录下配

@o-x-o
Copy link

o-x-o commented Jul 18, 2019

webpack的sass配置都是在 module 里配的。可在taro里却是在plugins里配而且感觉丝毫不起作用。

直接放在config根目录下配

不行

@Nodewebzsz
Copy link

遇到相同的问题,编译报错,求解

@Garfield550
Copy link
Collaborator

#4443 解决了,等新版本再试一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants