Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用es6语法 #38

Open
253867843 opened this issue Sep 27, 2019 · 0 comments
Open

使用es6语法 #38

253867843 opened this issue Sep 27, 2019 · 0 comments
Assignees
Labels

Comments

@253867843
Copy link
Owner

1.安装: npm install --save-dev babel-cli babel-preset-env

2.创建文件: .babelrc

{
    "presets": ["env"]
}

3.修改package.json

{
    "start": "nodemon --watch server --exec babel-node server/index.js"
}
--watch server >>> 监听 /server/index.js文件

4.运行

npm start 启动
@253867843 253867843 added the js label Sep 27, 2019
@253867843 253867843 self-assigned this Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant