-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathwebpack.config.js
42 lines (42 loc) · 1.01 KB
/
webpack.config.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
36
37
38
39
40
41
42
'use strict';
// https://www.yuque.com/easy-team/egg-react/config
const path = require('path');
const resolve = (filepath) => path.resolve(__dirname, filepath);
module.exports = {
entry: {
blog: 'app/web/page/blog/index.tsx',
antd: 'app/web/page/antd/index.tsx',
'demo/node': 'app/web/page/demo/node.tsx',
'demo/async': 'app/web/page/demo/async.tsx',
},
resolve: {
alias:{
'@asset': resolve('app/web/asset'),
'@framework': resolve('app/web/framework'),
'@component': resolve('app/web/component')
}
},
module: {
rules: [
{
less: {
include: [resolve('app/web'), resolve('node_modules')],
options: {
lessOptions: {
javascriptEnabled: true,
modifyVars: {
'primary-color': 'red',
'link-color': '#1DA57A',
'border-radius-base': '2px'
}
}
}
}
},
{
typescript: true
}
],
},
plugins:[]
};