-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a55e64a
commit 0e82f4e
Showing
3 changed files
with
7,461 additions
and
1,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: {} |
Oops, something went wrong.