Using ES6 with gulp
How to build ES6 with gulp+rollup+babel+eslint+terser
For vihanti.com, we’re using gulp as our build system instead of hugo (which is what this site uses), because it allows us to take advantage of the latest goodness available through npm. I really wanted to use ES6 for this project, but I found it a little tricky to find the best way to get minified JS with ES6. The important thing here is that we’re using rollup to both process the ES6 code and minify it using terser. I tried using babelify and uglify, but I ran into trouble with…