cc-inspector-chrome/source/vue.config.js

34 lines
892 B
JavaScript
Raw Normal View History

2021-04-02 21:49:55 +08:00
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",
2021-04-03 11:42:08 +08:00
devtools_panel: "src/devtools/panel/index.ts",
2021-04-02 21:49:55 +08:00
test: "src/test/index.ts",
},
configureWebpack: {
entry: {
content: Path.join(__dirname, "src/content.ts"),
2021-04-02 22:34:09 +08:00
background: Path.join(__dirname, "src/background.ts"),
inject: Path.join(__dirname, "src/inject.js"),
2021-04-03 11:42:08 +08:00
devtools: Path.join(__dirname, "src/devtools/main.ts"),
2021-04-02 21:49:55 +08:00
},
output: {
filename: "js/[name].js?t=[hash]"
},
plugins: [
new ChromeManifest({
manifest: Path.join(__dirname, "src/manifest/index.js")
}),
]
}
};