新增使用Gzip解压缩静态文件地址
This commit is contained in:
@ -5,6 +5,7 @@ export default function createCompression(env) {
|
||||
const compressList = VITE_BUILD_COMPRESS.split(',')
|
||||
const plugin = []
|
||||
if (compressList.includes('gzip')) {
|
||||
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
|
||||
plugin.push(
|
||||
compression({
|
||||
ext: '.gz',
|
||||
|
Reference in New Issue
Block a user