-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
35 lines (33 loc) · 1.07 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
module.exports = [
{
entry: {
"downloads": "./app/downloads.js",
"widget-downloads": "./app/components/widget-downloads.vue",
/*cart*/
"download-section-cart": "./app/components/download-section-cart.vue",
/*frontpage views*/
"download": "./app/views/download.js",
/*admin views*/
"download-settings": "./app/views/admin/settings.js",
"admin-categories": "./app/views/admin/categories.js",
"admin-file": "./app/views/admin/file.js",
"admin-category": "./app/views/admin/category.js",
"admin-download": "./app/views/admin/download.js"
},
output: {
filename: "./app/bundle/[name].js"
},
externals: {
"lodash": "_",
"jquery": "jQuery",
"uikit": "UIkit",
"vue": "Vue"
},
module: {
loaders: [
{test: /\.vue$/, loader: "vue"},
{test: /\.html$/, loader: "html"}
]
}
}
];