-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
webpack.config.js
34 lines (31 loc) · 936 Bytes
/
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
const webpack = require("webpack");
const path = require("path");
const CopyPlugin = require("copy-webpack-plugin");
const config = {
entry: "./src/index.js",
plugins: [
new CopyPlugin({
patterns: [
{ from: "src/promo.html", to: "" },
{ from: "src/index.html", to: "" },
{ from: "src/title.html", to: "" },
{ from: "src/about.html", to: "" },
{ from: "src/footer.html", to: "" },
{ from: "src/controls.html", to: "" },
{ from: "src/signup.html", to: "" },
{ from: "src/login.html", to: "" },
{ from: "src/dropdown.html", to: "" },
{ from: "src/sw.js", to: "" },
{ from: "src/manifest.json", to: "" },
{ from: "src/settings.html", to: "" },
],
}),
],
output: {
path: path.resolve(__dirname, "dist"),
filename: "main.js",
},
devtool: "source-map",
mode: "production",
};
module.exports = config;