forked from Happy2018new/user.fastbuilder.pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
37 lines (35 loc) · 1.02 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
const path=require("path");
const CopyWebpackPlugin=require("copy-webpack-plugin");
const pages={
main: "./src/index.js"/*,
page_about: "./src/pages/about.js",
page_admin: "./src/pages/admin.js",
page_announcements: "./src/pages/announcements.js",
page_cashier: "./src/pages/cashier.js",
page_downloads: "./src/pages/downloads.js",
//page_login: "./src/pages/#.js",
page_login_banned: "./src/pages/#/banned.js",
page_login_by_token: "./src/pages/#/#_by_token.js",
page_login_register: "./src/pages/#/register.js",
page_mall: "./src/pages/mall.js",
page_pay: "./src/pages/pay.js",
page_profile: "./src/pages/profile.js",
page_remove_account: "./src/pages/remove_account.js",
//page_router: "./src/pages/router.js",
page_shopping_cart: "./src/pages/shopping_cart.js",
page_theme: "./src/pages/theme.js"*/
};
module.exports = {
entry: pages,
plugins: [
new CopyWebpackPlugin({
patterns: [
{from: "public"}
]
})
],
output: {
filename: "[name].js",
path: path.resolve(__dirname, "bin")
}
};