Open coder-linx opened 4 years ago
https://blog.jijian.link/2020-01-07/hexo-js-es6/
习惯 ES6 语法之后,再写 ES5 就有点难受了啊。作为一个小前端,必须要折腾一把,让 hexo 集成 babel ,支持 ES6 语法以及模块化。好在有 hexo-renderer-babelify插件 支持,其 源码 也很简单,只有 23 行代码(0.0.2版本)。安装步骤
https://blog.jijian.link/2020-01-07/hexo-js-es6/
习惯 ES6 语法之后,再写 ES5 就有点难受了啊。作为一个小前端,必须要折腾一把,让 hexo 集成 babel ,支持 ES6 语法以及模块化。好在有 hexo-renderer-babelify插件 支持,其 源码 也很简单,只有 23 行代码(0.0.2版本)。安装步骤