-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
66 lines (65 loc) · 1.75 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
62
63
64
65
66
const path = require('path');
module.exports = {
entry: [
'./src/api/api.js',
'./src/api/store.js',
'./src/api/provider.js',
'./src/util/render.js',
'./src/util/waypoint.js',
'./src/util/observer.js',
'./src/util/destination.js',
'./src/util/statistics.js',
'./src/util/common.js',
'./src/util/offline/offline.js',
'./src/util/offline/offline.css',
'./src/const.js',
'./src/model/waypoints.js',
'./src/model/filter.js',
'./src/view/abstract.js',
'./src/view/trip.js',
'./src/view/trip-info.js',
'./src/view/info-main.js',
'./src/view/info-cost.js',
'./src/view/info-date.js',
'./src/view/info-title.js',
'./src/view/site-menu.js',
'./src/view/trip-filters.js',
'./src//view/trip-controls.js',
'./src/view/new-waypoint-btn.js',
'./src/view/trip-sort.js',
'./src/view/type-list.js',
'./src/view/waypoints-list.js',
'./src/view/destination-options.js',
'./src/view/destination-photos.js',
'./src/view/waypoint-destination.js',
'./src/view/waypoint-edit.js',
'./src/view/schedule.js',
'./src/view/trip-waypoint.js',
'./src/view/loading.js',
'./src/view/waypoint-offers.js',
'./src/view/new-waypoint-message.js',
'./src/view/statistics.js',
'./src/presenter/trip.js',
'./src/presenter/waypoint.js',
'./src/presenter/filter.js',
'./src/presenter/info.js',
'./src/main.js',
],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public'),
},
devtool: 'source-map',
devServer: {
contentBase: path.resolve(__dirname, 'public'),
watchContentBase: true,
},
module: {
rules: [
{
test: /\.css$/i,
use: ['style-loader', 'css-loader']
}
]
}
};