Gulp简介
gulp是一个自动化构建工具,能够强化我们的前端工作流。
gulp is an open-source JavaScript toolkit created by Eric Schoffstall used as a streaming build system (similar to a more package-focussed Make) in front-end web development.
It is a task runner built on Node.js and npm, used for automation of time-consuming and repetitive tasks involved in web development like minification, concatenation, cache busting, unit testing, linting, optimization, etc.
gulp uses a code-over-configuration approach to define its tasks and relies on its small, single-purpose plugins to carry them out. The gulp ecosystem includes more than 3500 such plugins.
更多内容,参考wikipedia-gulp.js、Gulp官网和Gulp中文网。
本文中,会使用gulp来压缩hexo生成的静态资源文件,加快站点的访问速度。