Skip to content

Commit

Permalink
fix(cli): 修复 ui 库编译中 h5 script 模式编译报错的问题 (#6089)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam authored Apr 24, 2020
1 parent 5c2606a commit 9e2b894
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/taro-cli/src/ui/h5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ async function buildH5Script (buildData: IBuildData) {
h5Config.env = projectConfig.env
h5Config.defineConstants = projectConfig.defineConstants
h5Config.plugins = projectConfig.plugins
h5Config.babel = projectConfig.babel
h5Config.csso = projectConfig.csso
h5Config.uglify = projectConfig.uglify
h5Config.sass = projectConfig.sass
h5Config.designWidth = projectConfig.designWidth
if (projectConfig.deviceRatio) {
h5Config.deviceRatio = projectConfig.deviceRatio
Expand Down
6 changes: 5 additions & 1 deletion packages/taro-cli/src/ui/ui.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,9 @@ export interface IH5BuildConfig extends IH5Config {
deviceRatio?: object,
sourceRoot?: string,
outputRoot?: string,
isWatch?: boolean
isWatch?: boolean,
babel?: object,
sass?: object,
csso?: object,
uglify?: object
}

0 comments on commit 9e2b894

Please sign in to comment.