All Projects → chenzhutian → Hexo All Minifier

chenzhutian / Hexo All Minifier

Licence: mit
A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hexo All Minifier

Hexo Theme Clover
Clover theme for Hexo.
Stars: ✭ 172 (-23.21%)
Mutual labels:  hexo
Hexo Theme Miho
🍺一款单栏响应式的hexo主题, A single column response for hexo . https://blog.minhow.com
Stars: ✭ 194 (-13.39%)
Mutual labels:  hexo
Hexo Theme Jsimple
Simple three columns theme for Hexo.Inspired by JianShu.com
Stars: ✭ 210 (-6.25%)
Mutual labels:  hexo
Hexo Theme Random
A hexo theme with random fullscreen background image.
Stars: ✭ 179 (-20.09%)
Mutual labels:  hexo
Hexo Theme Pln
📝 Plain theme for Hexo.
Stars: ✭ 186 (-16.96%)
Mutual labels:  hexo
Twikoo
一个简洁、安全、免费的静态网站评论系统 | A simple, safe, free comment system.
Stars: ✭ 195 (-12.95%)
Mutual labels:  hexo
Hexo Theme Mdui
Stars: ✭ 167 (-25.45%)
Mutual labels:  hexo
Hexo Editor
An editor for hexo blog.
Stars: ✭ 213 (-4.91%)
Mutual labels:  hexo
Hexo Theme Geektutu
极速加载的Hexo主题,不引入第三方JS库
Stars: ✭ 187 (-16.52%)
Mutual labels:  hexo
Hexo Theme Hiero
An awesome magazine, blog theme for your Hexo site.
Stars: ✭ 209 (-6.7%)
Mutual labels:  hexo
Post Scheduler
Schedule posts & content updates for static websites (Jekyll, Hugo, Gatsby, Phenomic etc)
Stars: ✭ 184 (-17.86%)
Mutual labels:  hexo
Hexo Theme Laughing
A lightweight hexo theme
Stars: ✭ 185 (-17.41%)
Mutual labels:  hexo
Hexo Theme Ochuunn
A simple green super hexo theme.
Stars: ✭ 202 (-9.82%)
Mutual labels:  hexo
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (-20.09%)
Mutual labels:  hexo
Hexo Abbrlink
create one and only link for every post for hexo
Stars: ✭ 212 (-5.36%)
Mutual labels:  hexo
Hexo Theme Nayo
一个简洁的Hexo主题.
Stars: ✭ 172 (-23.21%)
Mutual labels:  hexo
Hexo Prism Plugin
Hexo plugin for code highlighting by prism.js, supporting JSX syntax
Stars: ✭ 195 (-12.95%)
Mutual labels:  hexo
Hexo Theme Cafe
精简的Hexo博客主题,样式风格如阮一峰老师博客
Stars: ✭ 215 (-4.02%)
Mutual labels:  hexo
Hexo Theme Nlvi
🎨A simple theme for hexo.
Stars: ✭ 213 (-4.91%)
Mutual labels:  hexo
Hexo Theme Hipaper
A fashional newspaper theme for Hexo.
Stars: ✭ 204 (-8.93%)
Mutual labels:  hexo

Hexo-all-minifier

Greenkeeper badge Build Status codecov npm version NPM Dependencies

🌟🆕Try the latest feature JS_Concator in v0.4.0

All in one. Minifier & Optimization plugin for Hexo.

Installation

$ npm install hexo-all-minifier --save

For Mac User, maybe you need to install something more

$ brew install libtool automake autoconf nasm

Usage

Just put this line in the config file of your hexo-site to enable this plugin.

all_minifier: true

If you need futher control of this plugin, please refer the options below.

Options

🌟🆕!NEW

js_concator:
  enable: false
  bundle_path: '/js/bundle.js'
  front: false
  silent: false
  • enable - Enable the Js concator. Defaults to false.
  • bundle_path - The output path of the bundle script. It will be set as absolute path to the root dir.
  • front - Put the bundle script in the front of all scripts in body tag. Default to false, which means the bundle script will be placed in the back of other scripts.
  • silent - Disable logging optimize informations. Defaults to false.

The concator will concat all local scripts into one bundle script and attach it to the end of html's body tag. More detail control will be allowed in the future version.

html_minifier:
  enable: true
  ignore_error: false
  silent: false
  exclude:
  • enable - Enable the HTML minifier. Defaults to true.
  • ignore_error - Ignore the error occurred on parsing html.
  • silent - Disable logging optimize informations. Defaults to false.
  • exclude - Exclude files. Glob is support.

css_minifier:
  enable: true
  silent: false
  exclude: 
    - '*.min.css'
  • enable - Enable the CSS minifier. Defaults to true.
  • silent - Disable logging optimize informations. Defaults to false.
  • exclude - Exclude files. Glob is support.

js_minifier:
  enable: true
  mangle: true
  silent: false
  output:
  compress:
  exclude: 
    - '*.min.js'
  • enable - Enable the JS minifier. Defaults to true.
  • mangle: Mangle file names
  • output: Output options. If it is empty, please remove it from the .yml file! Otherwise it will be set to null, which is different from undefined.
  • compress: Compress options. If it is empty, please remove it from the .yml file! Otherwise it will be set to null, which is different from undefined.
  • silent - Disable logging optimize informations. Defaults to false.
  • exclude: Exclude files. Glob is support.

image_minifier:
  enable: true
  interlaced: false
  multipass: false
  optimizationLevel: 2
  pngquant: false
  progressive: false
  silent: false
  • enable - Enable the image minifier. Defaults to true.
  • interlaced - Interlace gif for progressive rendering. Defaults to false.
  • multipass - Optimize svg multiple times until it’s fully optimized. Defaults to false.
  • optimizationLevel - Select an optimization level between 0 and 7. Defaults to 2.
  • pngquant - Enable imagemin-pngquant plugin. Defaults to false.
  • progressive - Lossless conversion to progressive. Defaults to false.
  • silent - Disable logging optimize informations. Defaults to false.
  • exclude - Exclude specific types of image files, the input value could be gif,jpg, png, or svg. Default to null. Glob is not support.

Components

Integrate all the official minifier plugins of HEXO and a imagemin plugin:

Thanks for their work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].