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

Taro v3.5.0-beta.2 执行build:weapp后app.wxss中缺失了@import './common.wxss' #11990

Closed
Tinyyyyyyy opened this issue Jun 25, 2022 · 6 comments
Assignees
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Tinyyyyyyy
Copy link

Tinyyyyyyy commented Jun 25, 2022

相关平台

微信小程序

复现仓库

https://github.com/Tinyyyyyyy/tarotest.git
小程序基础库: 2.24.6
使用框架: React

复现步骤

npm run build:weapp

期望结果

打包后的app.wxss会引入common.wxss

实际结果

无引入

环境信息

Taro v3.5.0-beta.2


  Taro CLI 3.5.0-beta.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.19.1 - C:\nodejs\node.EXE
      Yarn: 1.22.18 - C:\Users\xxx\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.16 - C:\nodejs\npm.CMD


补充信息

run dev是正常的

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jun 25, 2022
@Chen-jj Chen-jj self-assigned this Jun 29, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 30, 2022

csso v5+ 会把底部 @import 给干掉。。

css/csso#456

@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 30, 2022

暂时把 csso 切换到 cssnano 解决。

@ZhuQinPeng
Copy link

暂时把 csso 切换到 cssnano 解决。

你好,这个怎么暂时切换,改哪里的配置,有截图吗,谢谢

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 4, 2022

暂时把 csso 切换到 cssnano 解决。

你好,这个怎么暂时切换,改哪里的配置,有截图吗,谢谢

@ZhuQinPeng 看我上面的 commit,下个版本会带出去,也可以自己提前改

@ZhuQinPeng
Copy link

暂时把 csso 切换到 cssnano 解决。

你好,这个怎么暂时切换,改哪里的配置,有截图吗,谢谢

@ZhuQinPeng 看我上面的 commit,下个版本会带出去,也可以自己提前改
你好,我是看了上面的commit,但是我没找到这个文件 packages/taro-webpack5-runner/src/webpack/WebpackPlugin.ts,是我没说清楚,抱歉啊

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 4, 2022

@ZhuQinPeng Taro v3.5,使用 webpack5 才有这个依赖的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants