forked from wearetheledger/react-antd-auth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.webpackrc.js
33 lines (32 loc) · 804 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
//const path = require('path');
export default {
entry: 'src/index.js',
extraBabelPlugins: [
'transform-decorators-legacy',
[
'import',
{ libraryName: 'antd', libraryDirectory: 'es', style: true }
],
[
'dotenv-import',
{
moduleName: '@env',
path: '.env',
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: false
}
]
],
alias: {
//'components': path.resolve(__dirname, 'src/components/'),
},
outputPath: 'build',
ignoreMomentLocale: true,
theme: './src/theme.js',
html: {
template: './public/index.ejs'
},
disableDynamicImport: true
};