https://github.com/chrisyip/hexo-minifier
Compress HTML, CSS and JavaScript for Hexo
https://github.com/chrisyip/hexo-minifier
Last synced: about 1 year ago
JSON representation
Compress HTML, CSS and JavaScript for Hexo
- Host: GitHub
- URL: https://github.com/chrisyip/hexo-minifier
- Owner: chrisyip
- License: mit
- Created: 2013-02-06T08:01:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-04-22T16:23:12.000Z (about 12 years ago)
- Last Synced: 2025-02-17T06:41:31.761Z (over 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This project's discontinued!
# CSS and JavaScript minifier plugin for [Hexo]
This plugin allows you to minify all the CSS and JavaScript files.
Note: files must end with `.css` or `.js` and files with `.min.` will be ignored.
## Usage
### Install
```
npm install hexo-minifer --save
```
### Update
```
npm update
```
### Uninstall
```
npm uninstall hexo-minifer
```
### Usage
```
hexo minify [-g|-generate]
```
With the argument: `-g` or `-generate`, or `public` folder isnot exist, minifier will generate files before minification.
### About HTML minifier
For now, there's no suitable HTML minifier for Hexo, I recommend to use templating engine that outputs minified HTML file, e.g. [Jade](http://jade-lang.com/), read more on Hexo [wiki](https://github.com/tommy351/hexo/wiki/Plugins).
[Hexo]: http://zespia.tw/hexo