-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.cjs
More file actions
27 lines (26 loc) · 656 Bytes
/
Copy pathwebpack.config.cjs
File metadata and controls
27 lines (26 loc) · 656 Bytes
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
const path = require("path");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
entry: {
popup: "./src/popup.bs.js",
background: "./src/background.bs.js",
content: "./src/content.bs.js"
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].js",
clean: true
},
experiments: {
asyncWebAssembly: true
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{ from: "public/manifest.json", to: "manifest.json" },
{ from: "public/popup.html", to: "popup.html" },
{ from: "public/icons", to: "icons", noErrorOnMissing: true }
]
})
]
};