Skip to content

Commit

Permalink
compress deploy code
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Dec 27, 2023
1 parent a55e64a commit 0e82f4e
Show file tree
Hide file tree
Showing 3 changed files with 7,461 additions and 1,187 deletions.
53 changes: 53 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,56 @@ deploy:
type: 'git'
repo: '[email protected]:mobeicanyue/mobeicanyue.github.io.git'
branch: 'gh-pages'


## Hexo-minify Default Config Options
minify:
preview: true ## 本地预览时是否压缩
exclude: ['*.min.*']
js:
enable: true
sourceMap:
enable: false ## 生成 sourceMap
## 将 sourceMappingURL 插入压缩后的 js 文件,如果为 false 则需要在浏览器开发者工具中手动添加 sourceMap
sourceMappingURL: false ## //# sourceMappingURL=xxx.js.map
## 详细配置: https://github.com/terser/terser#minify-options
options: {}
css:
enable: true
## 详细配置: https://github.com/clean-css/clean-css#compatibility-modes
options: {}
html:
enable: true
## 详细配置: https://github.com/kangax/html-minifier#options-quick-reference
options:
minifyJS: true # Compressed JavaScript
minifyCSS: true # CSS Compressed
removeComments: true # Remove the comments
collapseWhitespace: true # Delete any extra space
removeAttributeQuotes: true # Delete attribute quotes
image:
enable: true
svg:
enable: true
## 详细配置: https://github.com/imagemin/imagemin-svgo#imageminsvgooptionsbuffer
options: {}
jpg:
enable: true
## 详细配置: https://github.com/imagemin/imagemin-jpegtran#options
options: {}
png:
enable: true
## 详细配置: https://github.com/imagemin/imagemin-pngquant#options
options: {}
gif:
enable: true
## 详细配置: https://www.npmjs.com/package/imagemin-gifsicle#options
options: {}
webp:
enable: true
## 详细配置: https://github.com/imagemin/imagemin-webp#options
options: {}
font:
enable: false
## 详细配置: https://github.com/Lete114/fontmin-spider#api
options: {}
Loading

0 comments on commit 0e82f4e

Please sign in to comment.