Hexo-theme-next: 给自己的博客打个广告,压缩next博客代码

Created on 19 Feb 2016  ·  8Comments  ·  Source: iissnan/hexo-theme-next

next主题经hexo编译后生成的静态文件代码有很多多余的空白,不知道是hexo的原因还是next的原因,不过貌似我修改过next的源码没起作用.

我用gulp优化了一下,有需要的可以参考下.

使用gulp精简优化hexo博客

Optimization

Most helpful comment

hexo-all-minifier is enough

All 8 comments

good job(๑•̀ㅂ•́)و✧

呃..然而您并没有说要怎么才能使用它呢?至少我没有看到具体的使用方法。

hexo-all-minifier is enough

@flashlab 嗯,看看去,尝试下有没有用

@ixiusama 没写清楚吗?照着博客里的“优化实践”部分自己试下呢,我只是分部分来说了,没有把所有部分放在一起。你可以看这儿吧,我的博客的源文件

@flashlab @ixiusama 可以参考我的这篇文章:https://zoakerc.com/archives/minify-static-resources-in-hexo-by-gulp-plugins/

多谢分享,加了 Optimization Label,方便想要做优化的人查询。

@ghost 网站挂了

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nirvanada picture Nirvanada  ·  4Comments

payne4handsome picture payne4handsome  ·  4Comments

aiplay picture aiplay  ·  4Comments

iTofu picture iTofu  ·  4Comments

ifgao picture ifgao  ·  4Comments