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

watch 模式下 scss 编译有问题。 #4004

Closed
hqman opened this issue Jul 29, 2019 · 4 comments
Closed

watch 模式下 scss 编译有问题。 #4004

hqman opened this issue Jul 29, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@hqman
Copy link

hqman commented Jul 29, 2019

问题

进入watch 模式,修改scss 文件会单独编译,而不会汇总到 app.wxss。

app.scss文件如下

// app.scss
@import "variable_overrides";
@import "~taro-ui/dist/style/index.scss";
@import "utilities";
@import "icon";
@import "pages/profile";

终端log

当修改 pages/_profile.scss后,终端显示:

监听文件修改中...
修改 样式文件 src/assets/styles/pages/_profile.wxss
生成 样式文件 dist/assets/styles/pages/_profile.wxss

  • 操作系统: [mac]
  • Taro 版本 [ v.1.3.10]
  • 报错平台 [ weapp]
@taro-bot
Copy link

taro-bot bot commented Jul 29, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam luckyadam added CLI enhancement New feature or request labels Jul 30, 2019
@taro-bot
Copy link

taro-bot bot commented Jul 30, 2019

CC @luckyadam

@hqman
Copy link
Author

hqman commented Aug 20, 2019

@luckyadam 大佬 我更新到 1.3.14 还是出现这个问题

监听文件修改中...

生成  样式文件  dist/assets/styles/_variable_overrides.wxss
修改  样式文件  src/assets/styles/_variable_overrides.wxss
生成  样式文件  dist/assets/styles/_variable_overrides.wxss
修改  样式文件  src/assets/styles/_variable_overrides.wxss
生成  样式文件  dist/assets/styles/_variable_overrides.wxss
修改  样式文件  src/assets/styles/_variable_overrides.wxss
生成  样式文件  dist/assets/styles/_variable_overrides.wxss

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 10, 2020

升级到 Taro 2 或 3 应该没问题了。

@Chen-jj Chen-jj closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants