mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-17 23:48:41 +00:00
33 lines
818 B
JavaScript
33 lines
818 B
JavaScript
const ChromeManifest = require("./plugins/chrome-manifest");
|
|
const Path = require("path");
|
|
module.exports = {
|
|
publicPath: "/",
|
|
outputDir: "dist",
|
|
pages: {
|
|
popup: {
|
|
entry: "src/popup/index.ts",
|
|
template: "public/index.html",
|
|
filename: "popup.html",
|
|
title: "popup",
|
|
},
|
|
options: "src/options/index.ts",
|
|
devtools: "src/devtools/index.ts",
|
|
test: "src/test/index.ts",
|
|
},
|
|
configureWebpack: {
|
|
entry: {
|
|
content: Path.join(__dirname, "src/content.ts"),
|
|
background: Path.join(__dirname, "src/background.ts"),
|
|
inject: Path.join(__dirname, "src/inject.js"),
|
|
},
|
|
output: {
|
|
filename: "js/[name].js?t=[hash]"
|
|
},
|
|
plugins: [
|
|
new ChromeManifest({
|
|
manifest: Path.join(__dirname, "src/manifest/index.js")
|
|
}),
|
|
]
|
|
}
|
|
};
|