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

@tarojs/taro/html5.css 与 @nutui/nutui-taro css按需导入优先级不正确 #11905

Open
yoyo837 opened this issue Jun 8, 2022 · 3 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@yoyo837
Copy link
Contributor

yoyo837 commented Jun 8, 2022

相关平台

微信小程序

小程序基础库: 2.21.0
使用框架: Vue 3

复现步骤

我提供压缩包 repo.zip

期望结果

css加载顺序不正确,nutui按钮组件颜色被覆盖了

实际结果

加载顺序正确

环境信息


👽 Taro v3.4.11


  Taro CLI 3.4.11 environment info:
    System:
      OS: macOS 12.4
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - /opt/homebrew/opt/node@16/bin/node
      Yarn: 1.22.19 - /opt/homebrew/bin/yarn
      npm: 8.11.0 - /opt/homebrew/opt/node@16/bin/npm
    npmPackages:
      @tarojs/cli: 3.4.11 => 3.4.11 
      @tarojs/components: 3.4.11 => 3.4.11 
      @tarojs/mini-runner: 3.4.11 => 3.4.11 
      @tarojs/plugin-html: 3.4.11 => 3.4.11 
      @tarojs/runtime: 3.4.11 => 3.4.11 
      @tarojs/taro: 3.4.11 => 3.4.11 
      @tarojs/webpack-runner: 3.4.11 => 3.4.11 
      babel-preset-taro: 3.4.11 => 3.4.11 
      eslint-config-taro: 3.4.11 => 3.4.11 
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jun 8, 2022
@yoyo837
Copy link
Contributor Author

yoyo837 commented Jun 8, 2022

#11390 (comment)

@yoyo837 yoyo837 changed the title @tarojs/taro/html5.css 与 @nutui/nutui-taro css动态导入优先级不正确 @tarojs/taro/html5.css 与 @nutui/nutui-taro css按需导入优先级不正确 Jun 8, 2022
@yoyo837
Copy link
Contributor Author

yoyo837 commented Jun 8, 2022

image

@yoyo837
Copy link
Contributor Author

yoyo837 commented Jun 8, 2022

import './app.scss';
import { Button, Toast } from '@nutui/nutui-taro';

如果 app.scss 放前面是不是也应该优先?

实际情况和上面 @tarojs/taro/html5.css 一样问题。

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

No branches or pull requests

1 participant