Windows system take you step by step without brain use Babel

Source: Internet
Author: User

No nonsense directly write to see steps:

1. Create a new folder in F-Disk called Babel

2. NPM Init initialization Project

3. Global installation NPM Install Babel Babel-cli-g

4. Project installation NPM Install BABEL-CLI--save-dev

There will be one more Node_modules package in the project directory.

5. Create a new Es6.js file

Write a es6 for yourself.

6. Input instruction Babel Es6.js-o compiled.js

There is one more Compiled.js file under the Discovery Project

But it's not compiled.

7. Enter the life type NUL>.BABELRC

There will be one more BABELRC file in the project

8. Installation command NPM install--save babel-preset-es2015

Then run Babel Es6.js-o compiled.js

OK has been compiled successfully

Babel Es6.js--watch--out-file compiled.js
command line input changes to this monitoring file

Windows system take you step by step without brain use Babel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.