-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
59 lines (58 loc) · 1.42 KB
/
vue.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
/* eslint-disable @typescript-eslint/no-var-requires */
const CopyPlugin = require("copy-webpack-plugin");
const path = require("path");
// const RemovePlugin = require("remove-files-webpack-plugin");
module.exports = {
transpileDependencies: ["vuetify", "vuex-persist"],
configureWebpack: {
plugins: [
new CopyPlugin([
{
from: path.join(__dirname, "./node_modules/@tonclient/lib-web/tonclient.wasm"),
to: path.join(__dirname, "public"),
toType: "dir",
},
]),
// new RemovePlugin({
// after: {
// include: ["./dist/injection.html"],
// },
// }),
],
output: {
filename: "js/[name].js",
chunkFilename: "js/[name].js",
},
},
chainWebpack: (config) => {
config.optimization.delete("splitChunks");
},
pages: {
popup: {
template: "public/popup.html",
entry: "./src/popup/main.ts",
},
standalone: {
template: "public/index.html",
entry: "./src/standalone/main.ts",
filename: "index.html",
},
// injection: {
// entry: "./src/injection.ts",
// },
},
pluginOptions: {
browserExtension: {
componentOptions: {
background: {
entry: "src/background.ts",
},
// contentScripts: {
// entries: {
// "content-script": ["src/content-script.ts"],
// },
// },
},
},
},
};