hexo minify
? 1.7.0
Hexo-Minify는 HTML, CSS, JS, FONT, IMAGE (JPG, PNG, GIF, Webp, SVG)를 압축 할 수있는 Hexo 압축 플러그인입니다.
npm install hexo-minify --save
수정 해야하는 경우 HEXO 구성 파일에서 재정의를 편집 할 수 있습니다.
플러그인 만 설치하고 관련 구성을 채우지 않은 경우 다음 기본 구성 정보를 사용하십시오.
# # Hexo-minify Default Config Options
minify :
preview : false # # 本地预览时是否压缩
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 : {} 헥소 테마 몬드
헥소 세오 오토 푸시
Hexo-Hash
Hexo-prefetch