{"id":13548414,"url":"https://github.com/chenzhutian/hexo-all-minifier","last_synced_at":"2025-04-13T05:01:41.816Z","repository":{"id":57263208,"uuid":"48791150","full_name":"chenzhutian/hexo-all-minifier","owner":"chenzhutian","description":"A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.","archived":false,"fork":false,"pushed_at":"2024-04-28T16:55:44.000Z","size":811,"stargazers_count":287,"open_issues_count":22,"forks_count":28,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T05:06:48.926Z","etag":null,"topics":["css","hexo","html-minifier","imagemin","js-concatenation","minifies","optimizer-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenzhutian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-30T08:39:32.000Z","updated_at":"2025-03-29T04:56:51.000Z","dependencies_parsed_at":"2024-06-19T05:16:39.761Z","dependency_job_id":"41fb683b-16d7-4871-bbf9-368f651adb6c","html_url":"https://github.com/chenzhutian/hexo-all-minifier","commit_stats":{"total_commits":158,"total_committers":15,"mean_commits":"10.533333333333333","dds":0.5822784810126582,"last_synced_commit":"54f8109b16d177ed888da7a18053eb69de2963ff"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzhutian%2Fhexo-all-minifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzhutian%2Fhexo-all-minifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzhutian%2Fhexo-all-minifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzhutian%2Fhexo-all-minifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenzhutian","download_url":"https://codeload.github.com/chenzhutian/hexo-all-minifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665756,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","hexo","html-minifier","imagemin","js-concatenation","minifies","optimizer-plugin"],"created_at":"2024-08-01T12:01:10.028Z","updated_at":"2025-04-13T05:01:41.784Z","avatar_url":"https://github.com/chenzhutian.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Hexo-all-minifier\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/chenzhutian/hexo-all-minifier.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/chenzhutian/hexo-all-minifier.svg?branch=master)](https://travis-ci.org/chenzhutian/hexo-all-minifier)\n[![codecov](https://codecov.io/gh/chenzhutian/hexo-all-minifier/branch/master/graph/badge.svg)](https://codecov.io/gh/chenzhutian/hexo-all-minifier)\n[![npm version](https://badge.fury.io/js/hexo-all-minifier.svg)](https://badge.fury.io/js/hexo-all-minifier)\n[![NPM Dependencies](https://david-dm.org/unhealthy/hexo-all-minifier.svg)](https://www.npmjs.com/package/hexo-all-minifier)\n\n:star2::new:**Try the latest feature JS_Concator in v0.4.0**\n\nAll in one. Minifier \u0026 Optimization plugin for [Hexo](https://hexo.io).\n\n## Installation\n``` bash\n$ npm install hexo-all-minifier --save\n```\nFor Mac User, maybe you need to install something more\n```bash\n$ brew install libtool automake autoconf nasm\n```\n## Usage\nJust put this line in the config file of your hexo-site to enable this plugin.\n``` yaml\nall_minifier: true\n```\nIf you need futher control of this plugin, please refer the options below.\n\n## Options\n:star2::new:**!NEW**\n``` yaml\njs_concator:\n  enable: false\n  bundle_path: '/js/bundle.js'\n  front: false\n  silent: false\n```\n- **enable** - Enable the Js concator. Defaults to `false`.\n- **bundle_path** - The output path of the bundle script. It will be set as absolute path to the root dir.\n- **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.\n- **silent** - Disable logging optimize informations. Defaults to `false`.\n\nThe concator will concat all local scripts into one bundle script and attach it to the end of html's `body` tag.\nMore detail control will be allowed in the future version.\n----------\n\n``` yaml\nhtml_minifier:\n  enable: true\n  ignore_error: false\n  silent: false\n  exclude:\n```\n- **enable** - Enable the HTML minifier. Defaults to `true`.\n- **ignore_error** - Ignore the error occurred on parsing html.\n- **silent** - Disable logging optimize informations. Defaults to `false`.\n- **exclude** - Exclude files. Glob is support.\n\n----------\n\n``` yaml\ncss_minifier:\n  enable: true\n  silent: false\n  exclude: \n    - '*.min.css'\n```\n- **enable** - Enable the CSS minifier. Defaults to `true`.\n- **silent** - Disable logging optimize informations. Defaults to `false`.\n- **exclude** - Exclude files. Glob is support.\n\n----------\n\n``` yaml\njs_minifier:\n  enable: true\n  mangle: true\n  silent: false\n  output:\n  compress:\n  exclude: \n    - '*.min.js'\n```\n- **enable** - Enable the JS minifier. Defaults to `true`.\n- **mangle**: Mangle file names\n- **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`.\n- **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`.\n- **silent** - Disable logging optimize informations. Defaults to `false`.\n- **exclude**: Exclude files. Glob is support.\n\n----------\n\n```yaml\nimage_minifier:\n  enable: true\n  interlaced: false\n  multipass: false\n  optimizationLevel: 2\n  pngquant: false\n  progressive: false\n  silent: false\n```\n- **enable** - Enable the image minifier. Defaults to `true`.\n- **interlaced** - Interlace gif for progressive rendering. Defaults to `false`.\n- **multipass** - Optimize svg multiple times until it’s fully optimized. Defaults to `false`.\n- **optimizationLevel** - Select an optimization level between 0 and 7. Defaults to `2`.\n- **pngquant** - Enable [imagemin-pngquant](https://github.com/imagemin/imagemin-pngquant) plugin. Defaults to `false`.\n- **progressive** - Lossless conversion to progressive. Defaults to `false`.\n- **silent** - Disable logging optimize informations. Defaults to `false`.\n- **exclude** - Exclude specific types of image files, the input value could be `gif`,`jpg`, `png`, or `svg`. Default to null. Glob is not support. \n\n\n## Components\nIntegrate all the official minifier plugins of HEXO and a imagemin plugin:\n- [hexo-html-minifier](https://github.com/hexojs/hexo-html-minifier), which is based on [HTMLMinifier](https://github.com/kangax/html-minifier)\n- [hexo-clean-css](https://github.com/hexojs/hexo-clean-css), which is based on [clean-css](https://github.com/jakubpawlowicz/clean-css)\n- [hexo-uglify](https://github.com/hexojs/hexo-uglify), which is based on [UglifyJS](http://lisperator.net/uglifyjs/)\n- [hexo-imagemin](https://github.com/vseventer/hexo-imagemin), which is based on [imagemin](https://github.com/imagemin/imagemin)\n\nThanks for their work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenzhutian%2Fhexo-all-minifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenzhutian%2Fhexo-all-minifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenzhutian%2Fhexo-all-minifier/lists"}