-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebpack.config.js
60 lines (58 loc) · 2.68 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
var webpack = require('webpack');
var path = require('path');
module.exports = {
entry: {
'index': path.resolve(__dirname, './fe/src/index/index.js'),
'introduction': path.resolve(__dirname, './fe/src/introduction/introduction.js'),
'majorIntroduction': path.resolve(__dirname, './fe/src/majorIntroduction/majorIntroduction.js'),
'collegeDynamics': path.resolve(__dirname, './fe/src/collegeDynamics/collegeDynamics.js'),
'onlineApplication': path.resolve(__dirname, './fe/src/onlineApplication/onlineApplication.js'),
'studyCenter': path.resolve(__dirname, './fe/src/studyCenter/studyCenter.js'),
'help': path.resolve(__dirname, './fe/src/help/help.js'),
'contactUs': path.resolve(__dirname, './fe/src/contactUs/contactUs.js'),
'login': path.resolve(__dirname, './fe/src/login/login.js'),
'logout': path.resolve(__dirname, './fe/src/logout/logout.js'),
'personinfo': path.resolve(__dirname, './fe/src/person/info/info.js'),
'personprogress': path.resolve(__dirname, './fe/src/person/progress/progress.js'),
'persongrade': path.resolve(__dirname, './fe/src/person/grade/grade.js'),
'personroom': path.resolve(__dirname, './fe/src/person/room/room.js'),
'weixinBind': path.resolve(__dirname, './fe/src/weixinBind/weixinBind.js'),
'weixinBindUpdate': path.resolve(__dirname, './fe/src/weixinBindUpdate/weixinBindUpdate.js'),
'manage/statistic': path.resolve(__dirname, './fe/src/manage/statistic/statistic.js'),
'manage/aggregation': path.resolve(__dirname, './fe/src/manage/aggregation/aggregation.js'),
'manage/annual': path.resolve(__dirname, './fe/src/manage/annual/annual.js'),
'manage/login': path.resolve(__dirname, './fe/src/manage/login/login.js')
},
output: {
path: path.resolve(__dirname, './fe/js/'),
filename: '[name].js'
},
module: {
loaders:[
{
test: /\.css$/,
loader: 'style-loader!css-loader',
include: path.resolve(__dirname, "./fe/src"),
exclude: /node_modules/
},
{
test: /\.html$/,
loader: 'html-loader',
include: path.resolve(__dirname, "./fe/src"),
},
{
test: /\.vue$/,
loader: 'vue-loader',
include: path.resolve(__dirname, "./fe/src"),
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader",
query: {
presets: ['es2015']
}
}
]
}
}