Skip to content

Commit

Permalink
perf(core): Update html-task styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Dec 29, 2023
1 parent 072679f commit 9b0c006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/build/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,15 @@ module.exports = function htmlTask(options = {}, done) {
compiler,
compilerOptions,
minify: htmlMinify,
alias,
fileHash
alias
} = options

if (!input) {
throw new Error('input is required')
}

let manifest
if (fileHash) {
if (options.fileHash) {
// path.posix 统一路径, 兼容window平台
const json = readJsonFilesSync(path.posix.join(dest, revDir, '*.json'), { merge: true })
manifest = JSON.stringify(json)
Expand Down

0 comments on commit 9b0c006

Please sign in to comment.