Created
October 11, 2017 05:32
-
-
Save MahbbRah/b03d7b02caddac50a85d9594c0547298 to your computer and use it in GitHub Desktop.
Install babel for ES6 on clean & fresh project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install babel with npm or yarn | |
`npm install --save-dev babel-cli` | |
=> add a script on `package.json` for babel with this line: `babel-node FILENAME_TO_SERVE` | |
=> install babel ES6 presets `npm install --save-dev babel-preset-es2015` | |
=> add es6 presets to `.babelrc` file `{ "presets": ["es2015"] }` | |
#And there we go! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment