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

fix(build): 修复组件打包后入口文件路径 #1177

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

liaobinbin
Copy link

修复build component的时候入口文件不正确导致的样式引用问题 (修改package.json的script,为ui打包的时候指定入口文件)

添加@tarojs/plugin-sass,@tarojs/plugin-uglify 两个插件 来解决 build过程中的黄色警告和报错。

目前压缩插件无效。应该是插件的问题导致。

@liaobinbin
Copy link
Author

现在发布在npm仓库的2.3.4版本就存在这个样式路径的问题,导致编译找不到文件直接报错,在index.ts里面引用了三个scss文件,文件路径是在当前的styles文件夹,而build打包后,styles文件夹成为上一级目录,所以导致该文件无法被找到。

该提交是为了解决taro-ui 2.3.4的bug

@zhaoyunchong
Copy link

? 配置好插件 运行直接报错了

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

Successfully merging this pull request may close these issues.

2 participants