2021-04-02 21:49:55 +08:00
|
|
|
const ChromeManifest = require("./plugins/chrome-manifest");
|
|
|
|
const Path = require("path");
|
|
|
|
module.exports = {
|
|
|
|
publicPath: "/",
|
|
|
|
outputDir: "dist",
|
|
|
|
pages: {
|
2021-04-03 16:47:16 +08:00
|
|
|
popup: "src/popup/index.ts",
|
2021-04-02 21:49:55 +08:00
|
|
|
options: "src/options/index.ts",
|
2021-04-03 16:47:16 +08:00
|
|
|
devtools: "src/devtools/index.ts",
|
2021-04-02 21:49:55 +08:00
|
|
|
},
|
2021-04-03 16:14:37 +08:00
|
|
|
pluginOptions: {
|
|
|
|
browserExtension: {
|
|
|
|
components: {
|
|
|
|
background: true,
|
|
|
|
contentScripts: true,
|
|
|
|
},
|
|
|
|
componentOptions: {
|
|
|
|
contentScripts: {
|
|
|
|
entries: {
|
|
|
|
content: "src/content.ts"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
background: {
|
|
|
|
entry: "src/background.ts",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-04-02 21:49:55 +08:00
|
|
|
};
|