cc-inspector-chrome/source/vue.config.js
2021-04-02 22:34:09 +08:00

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")
}),
]
}
};