Question: How can I write my gulp file in ES6 so I can use import instead of require and use => syntax over
Steps I followed for developing the code for gulpfile in es6:
npm install gulp && sudo npm install gulp -g.gulp -vnpm install babel-core babel-preset-es2015-without-strict --save-devtouch .babelrc in the terminalIn the .babelrc file, add this code
{
"presets": ["es2015-without-strict"]
}
Created the gulp config file with the name gulpfile.babel.js
Voila!!! You can now write the config code for gulp in ES6.
Source: Using ES6 with Gulp - Mark Goodyear