Closed XueshiQiao closed 1 year ago
You can try to copy the following config to Hexo _config.yml
filter_optimize:
enable: true
# static resource versioning
versioning: false
css:
# minify all css files
minify: true
excludes:
# use preload to load css elements dynamically
delivery:
- '@fortawesome/fontawesome-free'
- 'fonts.googleapis.com'
# make specific css content inline into the html page
inlines:
# support full path only
- css/main.css
js:
# minify all js files
minify: true
excludes:
# remove the comments in each of the js files
remove_comments: false
html:
# minify all html files
minify: true
excludes:
# set the priority of this plugin,
# lower means it will be executed first, default of Hexo is 10
priority: 12
Error output of "hexo gen"
"hexo-optimize" version is "3.3.0", all of other dependencies' version:
System Info:
node -v v18.14.0
npm -v 9.3.1
macOS 13.2 (22D49) , M1 chip