Commit Graph

77 Commits

Author SHA1 Message Date
weyusi 4f5104c408 fix: use the default options for brotli
brotli already defaults to max (11) compression level
BROTLI_MAX_QUALITY is unnecessary and somehow corresponds to lower level
2019-04-22 18:28:00 +09:30
weyusi 49c9fcb310 feat: support more file extensions
based on the list by https://github.com/philnash/jekyll-gzip
2019-04-22 18:24:31 +09:30
weyusi 1ea89ec108 chore: disable package-lock.json 2019-04-12 14:44:25 +09:30
weyusi 3aa5143adf release: v1.2.0 2019-04-10 19:35:15 +09:30
weyusi cb4dc87a5a docs: replace uglifyjs with terser 2019-04-10 19:34:43 +09:30
weyusi 2a9c5a52b4 feat: switch to terser for ES6 compatibility 2019-04-10 19:24:02 +09:30
weyusi 4c2b9e2d1f release: v1.1.1 2019-04-05 16:22:31 +10:30
weyusi f55b96d32a
Merge pull request #7 from weyusi/update-bluebird
chore: update blubird to v3.5.4
2019-04-05 16:19:12 +10:30
weyusi 6f50b501d6 chore: update blubird to v3.5.4 2019-04-05 16:16:50 +10:30
weyusi e9ced440d7
Merge pull request #4 from weyusi/greenkeeper/html-minifier-4.0.0
chore: Update html-minifier to the latest version 🚀
2019-04-05 16:13:17 +10:30
greenkeeper[bot] e82d43d0e2 fix(package): update html-minifier to version 4.0.0 2019-04-01 18:50:56 +00:00
weyusi 734342df00 release: v1.1.0 2019-03-14 20:03:03 +10:30
weyusi 5c0ef6c738 docs: mention xml and json in readme 2019-03-14 20:00:38 +10:30
weyusi fa30a2f22d chore: update deps 2019-03-14 19:50:41 +10:30
weyusi 84b2457371
Merge pull request #3 from weyusi/xml-json
feat: compress xml and json
2019-03-14 19:46:21 +10:30
weyusi 3bd69a5b24 feat: compress xml and json 2019-03-08 21:07:51 +10:30
weyusi 7d2f7488aa style: fix formatting and grammar 2018-11-02 21:10:36 +10:30
weyusi 668a1c8d71 v1.0.4 2018-11-02 20:59:59 +10:30
weyusi 85901176cf docs: add more info on brotli 2018-11-02 20:59:00 +10:30
weyusi a6464c1516 test: update package.json to snyk in every build 2018-10-30 18:37:10 +10:30
weyusi 486c37845b v1.0.3 2018-10-27 18:39:34 +10:30
weyusi 0946ab2f7b refactor: remove object-assign ponyfill
Object.assign() is supported by node 4 and up
2018-10-27 18:38:12 +10:30
weyusi c3a10de6ee Update readme formatting 2018-10-26 15:36:58 +10:30
weyusi 9c97c00aa4 refactor: var to let/const
https://hacks.mozilla.org/2015/07/es6-in-depth-let-and-const/
2018-10-26 15:27:23 +10:30
weyusi 4c742451e2 Remove package-lock.json 2018-10-26 13:16:08 +10:30
weyusi 0296c15fda Update readme formatting 2018-10-25 20:44:33 +10:30
weyusi 84f7a911d3 Bump version 2018-10-25 20:16:33 +10:30
weyusi d2d92bc539 Disable logging by default 2018-10-25 20:15:26 +10:30
weyusi a6c5727d4b Remove unused library 2018-10-25 20:14:27 +10:30
weyusi 58adaeb34d Use js standard style
https://standardjs.com/
2018-10-25 20:05:59 +10:30
weyusi 7659d74fcb Whitelist greenkeeper branches 2018-10-25 16:09:01 +10:30
weyusi 8a8c5563c4 Apply level 2 optimisation of clean-css
https://github.com/jakubpawlowicz/clean-css#level-2-optimizations
2018-10-19 12:34:34 +10:30
weyusi 0c304a576a Only build master branch 2018-10-15 14:52:13 +10:30
weyusi f9ec3fae73 Show difference compared to hexo-neat
Vulnerability statement is removed because this package has more severe vulnerability
due to iltorb (for brotli).
2018-10-12 14:04:45 +10:30
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 d99b1d3158 Brotli max compression level is 11
c6333e1e79/c/include/brotli/encode.h (L42)
2018-10-02 09:53:08 +09:30
weyusi 03668833cf Set maximum brotli compression level 2018-10-01 17:50:47 +09:30
weyusi 1c8c24029f Update snyk policy 2018-09-30 18:01:01 +09:30
weyusi b6425e622e Add brotli compression 2018-09-30 17:00:32 +09:30
weyusi 7c82b1b52d Update readme for gzip option 2018-09-29 15:28:43 +09:30
weyusi 66557d353c Add Snyk policy 2018-09-29 15:22:36 +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 64e72c6248 Use hexo variable for public folder
http://searene.me/2016/07/17/Hexo-Source-Code-Demystified/
2018-09-28 17:50:42 +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 732d07325c Remove hexo from travis 2018-09-28 11:54:17 +09:30
weyusi 6f703e9e47
Merge pull request #1 from weyusi/greenkeeper/initial
Add Greenkeeper badge
2018-09-27 19:27:47 +09:30
greenkeeper[bot] b06d876047 docs(readme): add Greenkeeper badge 2018-09-27 09:19:03 +00:00
weyusi 4745870028 uglify3 compatibility
Credit to 8d9f2da8276652ef270e943dbf9dcb648e14ed55
2018-09-27 18:13:19 +09:30
weyusi 1eb6f3b20a Bump version 2018-09-27 17:42:14 +09:30