-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.webpackrc.js
35 lines (34 loc) · 940 Bytes
/
.webpackrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { resolve } from 'path';
export default {
"entry": "src/index.js",
"publicPath": "/",
"extraBabelPlugins": [
"transform-decorators-legacy",
"transform-class-properties",
["import", { "libraryName": "antd-mobile", "libraryDirectory": "es", "style": true }],
],
"env": {
"development": {
"extraBabelPlugins": [
"dva-hmr"
]
}
},
"alias": {
src: resolve(__dirname, 'src'),
routes: resolve(__dirname, "src/routes"),
components: resolve(__dirname, "src/components"),
models: resolve(__dirname, "src/models"),
services: resolve(__dirname, "src/services"),
config: resolve(__dirname, "src/config"),
assets: resolve(__dirname, "src/assets"),
common: resolve(__dirname, "src/common"),
utils: resolve(__dirname, "src/utils"),
},
"hash": false,
"disableCSSModules": false,
"ignoreMomentLocale": true,
"urlLoaderExcludes": [
/\.svg$/,
]
}