Commit Graph

349 Commits

Author SHA1 Message Date
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
weyusi 0022702822 Don't parse irrelevent options to uglifyjs 2018-09-27 17:40:38 +09:30
weyusi 7b03521154 Remove greenkeeper badge temporarily
Revert 81192338f2
2018-09-27 17:25:09 +09:30
weyusi 414340f860 Update travis badge 2018-09-27 17:19:26 +09:30
weyusi 81192338f2 Add greenkeeper badge 2018-09-27 17:05:04 +09:30
weyusi 860aa722c5 Run travis on every branch
Greenkeeper's requirement
2018-09-27 16:59:59 +09:30
weyusi bb6b23a084 Add badges 2018-09-27 16:51:46 +09:30
weyusi a4c86b14a0 Update formatting
and ignore package-lock.json for npm publish
2018-09-27 16:31:14 +09:30
weyusi 0bb6d14018 Merge branch 'test'
Merge 2c9fc74660 to master
2018-09-27 16:19:06 +09:30
weyusi a8744a8eb5 Add travis and npmignore 2018-09-27 16:16:45 +09:30
weyusi 2c9fc74660 Update dependency
html-minifier <3.5.0 has ReDoS vulnerability
https://snyk.io/test/npm/hexo-neat
2018-09-27 14:57:16 +09:30
落月 28969670e8
Merge pull request #8 from mygu/master
Some fixes and optimizations
2018-06-29 18:18:02 +08:00
mygu b44d024430 Update README.md 2018-06-29 16:11:00 +08:00
mygu 8300b72478 Add a print log configuration switch to solve compilation performance problems 2018-06-29 16:08:47 +08:00
Mingyu Gu 0089858eb8
Fixed 'exclude' config does not work issue
Matching paths require add the `{ matchBase: true }` paramter
2018-06-29 15:49:13 +08:00
rozbo 892cde9a78 add a badge 2016-06-23 13:27:24 +08:00
rozbo fa1b1b685e release 1.0.4 2016-06-22 19:35:26 +08:00
rozbo 76b0dcae08 add build date 2016-06-22 19:15:47 +08:00
rozbo 95c7f6daa0 repair config 2016-05-26 19:46:34 +08:00
rozbo f17ff2064c repair config 2016-05-26 19:46:01 +08:00
rozbo 1bbf03d05d modfiy dep 2016-05-26 19:41:09 +08:00
rozbo e965aff28a republish the version 2016-05-26 19:31:53 +08:00
rozbo 079b37a7fc readme 2016-05-26 19:23:57 +08:00
rozbo f5e52a6fa8 update package 2016-05-26 19:14:14 +08:00
rozbo 840a410b0c Merge branch 'master' of https://github.com/Rozbo/hexo-neat 2016-05-26 19:11:27 +08:00
rozbo b3be6d5b97 init code 2016-05-26 19:09:41 +08:00
rozbo df8036f423 Delete README.md 2016-05-26 19:09:16 +08:00
rozbo 1200a8c60e Initial commit 2016-05-26 18:51:25 +08:00