mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 08:28:41 +00:00
35 lines
748 B
JavaScript
35 lines
748 B
JavaScript
const Copy = require("./plugins/copy");
|
|
const Path = require("path");
|
|
module.exports = {
|
|
publicPath: "/",
|
|
outputDir: "dist",
|
|
pages: {
|
|
popup: "src/popup/index.ts",
|
|
options: "src/options/index.ts",
|
|
devtools: "src/devtools/index.ts",
|
|
},
|
|
pluginOptions: {
|
|
browserExtension: {
|
|
components: {
|
|
background: true,
|
|
contentScripts: true,
|
|
},
|
|
componentOptions: {
|
|
contentScripts: {
|
|
entries: {
|
|
content: "src/content.ts",
|
|
inject: "src/devtools/inject.ts",
|
|
},
|
|
},
|
|
background: {
|
|
entry: "src/background.ts",
|
|
}
|
|
}
|
|
}
|
|
},
|
|
configureWebpack: {
|
|
mode: "development",// production
|
|
devtool: "#source-map",
|
|
}
|
|
};
|