mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
优化构建
This commit is contained in:
parent
ee78a80307
commit
67783fc6b7
@ -8,7 +8,7 @@ export default function createCompression(env) {
|
|||||||
plugin.push(
|
plugin.push(
|
||||||
compression({
|
compression({
|
||||||
ext: '.gz',
|
ext: '.gz',
|
||||||
deleteOriginFile: false,
|
deleteOriginFile: true,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -17,7 +17,7 @@ export default function createCompression(env) {
|
|||||||
compression({
|
compression({
|
||||||
ext: '.br',
|
ext: '.br',
|
||||||
algorithm: 'brotliCompress',
|
algorithm: 'brotliCompress',
|
||||||
deleteOriginFile: false,
|
deleteOriginFile: true,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user