weyusi
|
1dafc72850
|
Use after_generate instead of before_exit
before_exit was a workaround instead of proper after_generate
Use hexo router instead of filesystem manipulation, so hexo-fs is not required anymore
this approach also allows size comparison of original and compressed file, just like minifier currently have
inspired by
- https://www.travisgeis.com/2018/04/23/lazy-image-resizing-in-hexo-image-sizes-v2/
- https://github.com/ottobonn/hexo-image-sizes/blob/master/lib/ImageResizer.js
- https://github.com/chenzhutian/hexo-all-minifier/blob/master/lib/concatJS.js
- https://stackoverflow.com/a/39441194
|
2018-10-05 13:38:55 +09:30 |
weyusi
|
b6425e622e
|
Add brotli compression
|
2018-09-30 17:00:32 +09:30 |
weyusi
|
2dc6c5f48e
|
Don't run gzip when public folder has/does not exist
Continuation of 71c5878400
This is necessary especially to prevent gzip from running when hexo clean
|
2018-09-29 15:11:14 +09:30 |
weyusi
|
71c5878400
|
Use 'after_generate' instead of 'before_exit'
Compatibility with hexo clean
|
2018-09-28 17:22:22 +09:30 |
weyusi
|
ea13ea9967
|
Add gzip compression
|
2018-09-28 17:13:54 +09:30 |
weyusi
|
4745870028
|
uglify3 compatibility
Credit to 8d9f2da8276652ef270e943dbf9dcb648e14ed55
|
2018-09-27 18:13:19 +09:30 |
mygu
|
8300b72478
|
Add a print log configuration switch to solve compilation performance problems
|
2018-06-29 16:08:47 +08:00 |
rozbo
|
b3be6d5b97
|
init code
|
2016-05-26 19:09:41 +08:00 |