1 | {
|
2 | "presets": [
|
3 | ["es2015", {"modules": false}],
|
4 | // webpack understands the native import syntax, and uses it for tree shaking
|
5 | "stage-0",
|
6 | "react"
|
7 | // Transpile React components to JavaScript
|
8 | ],
|
9 | "plugins": [
|
10 | "react-hot-loader/babel",
|
11 | // Enables React code to work with HMR.
|
12 | ["import", { "libraryName": "antd", "style": "css" }] // `style: true` 会加载 less 文件
|
13 |
|
14 | ]
|
15 | } |
\ | No newline at end of file |