Skip to content

Commit ca4f4d7

Browse files
committed
完善es6文档
1 parent 1e6d794 commit ca4f4d7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -784,4 +784,13 @@ npm i -D babel babel-preset-es2015 babel-loader babel-core
784784
use: 'babel-loader',
785785
exclude: /node_modules/
786786
},
787-
```
787+
```
788+
在根目录新增.babelrc文件
789+
``` javascript
790+
{
791+
"presets": ["es2015"]
792+
}
793+
```
794+
现在我们就可以肆无忌惮的写es6的语法了!
795+
796+
具体参考:[http://babeljs.io/docs/setup/#installation](http://babeljs.io/docs/setup/#installation)

0 commit comments

Comments
 (0)