Skip to content

Commit

Permalink
fix: files that should be remove
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Feb 18, 2022
1 parent 5d9c2f1 commit c0571d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function ViteCompressionPlugin(opts: ViteCompressionPluginConfig = {}): Plugin {
let log: ResolvedConfig['logger']
const options = resolveConfig(opts)

const compressList = []
const compressList: string[] = []

const compressMap = new Map<
string,
Expand Down Expand Up @@ -91,7 +91,7 @@ function ViteCompressionPlugin(opts: ViteCompressionPluginConfig = {}): Plugin {

// do delete file or not after compression
try {
const removed = await removeFiles(files, deleteOriginalAssets)
const removed = await removeFiles(compressList, deleteOriginalAssets)
if (removed) logSuccess(removed, log)
} catch (error) {
logError(error, log)
Expand Down

0 comments on commit c0571d6

Please sign in to comment.