-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathwebpack.config.js
More file actions
38 lines (38 loc) · 858 Bytes
/
webpack.config.js
File metadata and controls
38 lines (38 loc) · 858 Bytes
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
'use strict';
const path = require('path');
const resolve = filepath => path.resolve(__dirname, filepath);
module.exports = {
entry: {
'admin/login': 'app/web/page/admin/login/login.vue',
'admin/home': 'app/web/page/admin/home/index.ts'
},
resolve: {
alias:{
'@asset': resolve('app/web/asset'),
'@framework': resolve('app/web/framework'),
'@component': resolve('app/web/component'),
'@store': resolve('app/web/page/store'),
'@router': resolve('app/web/page/admin/home/router'),
'@view': resolve('app/web/page/admin/home/view')
}
},
module:{
rules:[
{ babel: false },
{
ts: {
exclude: []
}
}
]
},
plugins: [
{ imagemini: false },
{
copy: [{
from: 'app/web/asset',
to: 'asset'
}]
}
]
};