Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
8c956d68
Commit
8c956d68
authored
Jun 26, 2022
by
RuoYi
Browse files
默认不启用压缩文件缓存防止node_modules过大
parent
89eb44af
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-ui/vue.config.js
View file @
8c956d68
...
...
@@ -61,6 +61,7 @@ module.exports = {
plugins
:
[
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
new
CompressionPlugin
({
cache
:
false
,
// 不启用文件缓存
test
:
/
\.(
js|css|html
)?
$/i
,
// 压缩文件格式
filename
:
'
[path].gz[query]
'
,
// 压缩后的文件名
algorithm
:
'
gzip
'
,
// 使用gzip压缩
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment