Skip to content

Commit

Permalink
fix(core): Generate both source and hash files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Dec 29, 2023
1 parent a5c6c7c commit 9951e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/build/comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ function outputFiles(processes, {
if (fileHash) {
const fileFilter = createFilter(filter)
// 2. 是否生成 hash文件
// 2.1 不生成 hash文件
fileHash === '?' && processes.push(gulp.dest(dest))
// fileHash === '?' && processes.push(gulp.dest(dest))
processes.push(gulp.dest(dest)) //!复制原始文件,防止 hash 文件未被替换后导致找不到文件
// 2.2 是否过滤指定文件
if (fileFilter) {
processes.push(fileFilter)
Expand Down

0 comments on commit 9951e43

Please sign in to comment.