fix(build): 修复组件打包后入口文件路径#1177
Open
liaobinbin wants to merge 1 commit intojd-opensource:devfrom
Open
Conversation
Author
|
现在发布在npm仓库的2.3.4版本就存在这个样式路径的问题,导致编译找不到文件直接报错,在index.ts里面引用了三个scss文件,文件路径是在当前的styles文件夹,而build打包后,styles文件夹成为上一级目录,所以导致该文件无法被找到。 该提交是为了解决taro-ui 2.3.4的bug |
|
? 配置好插件 运行直接报错了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复build component的时候入口文件不正确导致的样式引用问题 (修改package.json的script,为ui打包的时候指定入口文件)
添加
@tarojs/plugin-sass,@tarojs/plugin-uglify两个插件 来解决 build过程中的黄色警告和报错。目前压缩插件无效。应该是插件的问题导致。