Skip to content

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

2 participants