Babel for Beginners
Start writing in ES6 now!
What is Babel?
Why use Babel?
If you aren’t using bable to transpile your projects then you can’t write in ES6. There are lots of benefits to writing in ES6
Navigate to a your projects root folder in the terminal then run the following command:
- Install the Gulp client globally
- Install Gulp to the devDependencies for this project
- Create a gulpfile.js (Used for configuring gulp.).
Then add the following to your
Now you have everything setup! If you run
gulp in the terminal in will run the default task, i.e the task we just created in the
gulpfile. But nothing will happen because we haven’t actually told gulp what to do…
Gulp has a fantastic list of recipes. You may find exactly what you are already looking for in there!
I am going to use one of the recipes called ‘Output both a minified and non-minified version’