forked from ioioinfo/custom_clothing_mp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
61 lines (59 loc) · 2.34 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
61
/**
┌──────────────────────────────────────────────────────────────┐
│ ___ ___ ___ ___ ___ _ _ ___ ___ │
│ |_ _/ _ \_ _/ _ \_ _| \| | __/ _ \ │
│ | | (_) | | (_) | || .` | _| (_) | │
│ |___\___/___\___/___|_|\_|_| \___/ │
│ │
│ │
│ set up in 2015.2 │
│ │
│ committed to the intelligent transformation of the world │
│ │
└──────────────────────────────────────────────────────────────┘
*/
module.exports = {
entry: {
index: './app/index.jsx',
login: './app/login.jsx',
person_center: './app/person_center.jsx',
clothing_chongzhi: './app/clothing_chongzhi.jsx',
record: './app/record.jsx',
signup: './app/signup.jsx',
coupon: './app/coupon.jsx',
reset_password: './app/reset_password.jsx',
my_profile: './app/my_profile.jsx',
order_list: './app/order_list.jsx',
order_detail: './app/order_detail.jsx',
mendian_list: './app/mendian_list.jsx',
company: './app/company.jsx',
contact: './app/contact.jsx',
history_list: './app/history_list.jsx',
},
output: {
path: __dirname,
filename: './public/js/app/[name].js'
},
resolve: {
modules: [__dirname, '../node_modules','components'],
alias: {
},
extensions: ['.js','.jsx']
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
},
module: {
loaders: [
{
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
},
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/
}
]
}
};