Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Dec 26, 2019
1 parent 1c68da4 commit f0cbdc2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/taro-cli/src/ui/quickapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import * as path from 'path'

import { processTypeEnum, REG_TYPESCRIPT } from '../util/constants'
import * as wxTransformer from '@tarojs/transformer-wx'
import { compileDepStyles } from '../mini/compileStyle'
import { printLog } from '../util'
import { analyzeFiles, parseEntryAst, QUICKAPP_OUTPUT_NAME, copyFileToDist, copyAllInterfaceFiles } from './common'
import { IBuildData } from './ui.types'
Expand All @@ -28,11 +27,7 @@ export async function buildForQuickapp (buildData: IBuildData) {
isNormal: true,
isTyped: REG_TYPESCRIPT.test(entryFilePath)
})
const {styleFiles, components} = parseEntryAst(transformResult.ast, entryFilePath)
if (styleFiles.length) {
const outputStylePath = path.join(outputDir, 'css', 'index.css')
await compileDepStyles(outputStylePath, styleFiles)
}
const { components } = parseEntryAst(transformResult.ast, entryFilePath)
const relativePath = path.relative(appPath, entryFilePath)
printLog(processTypeEnum.COPY, '发现文件', relativePath)
fs.ensureDirSync(path.dirname(outputEntryFilePath))
Expand Down

0 comments on commit f0cbdc2

Please sign in to comment.