Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给自己的博客打个广告,压缩next博客代码 #665

Closed
zhangjh opened this issue Feb 19, 2016 · 8 comments
Closed

给自己的博客打个广告,压缩next博客代码 #665

zhangjh opened this issue Feb 19, 2016 · 8 comments

Comments

@zhangjh
Copy link

zhangjh commented Feb 19, 2016

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

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

使用gulp精简优化hexo博客

@cinthisime
Copy link

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

@ixiusama
Copy link

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

@flashlab
Copy link
Contributor

hexo-all-minifier is enough

@zhangjh
Copy link
Author

zhangjh commented Feb 20, 2016

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

@zhangjh
Copy link
Author

zhangjh commented Feb 20, 2016

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

@ghost
Copy link

ghost commented Feb 24, 2016

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

@iissnan
Copy link
Owner

iissnan commented Mar 15, 2016

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

@zhangnew
Copy link

@ghost 网站挂了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants