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

35 lines
748 B
JavaScript
Raw Normal View History

2021-04-04 20:48:18 +08:00
const Copy = require("./plugins/copy");
2021-04-05 11:10:54 +08:00
const Path = require("path");
2021-04-02 21:49:55 +08:00
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: {
2021-04-04 20:48:18 +08:00
content: "src/content.ts",
2021-04-22 19:09:35 +08:00
inject: "src/devtools/inject.ts",
2021-04-03 16:14:37 +08:00
},
},
background: {
entry: "src/background.ts",
}
}
}
},
2021-04-05 11:10:54 +08:00
configureWebpack: {
2021-04-05 18:38:44 +08:00
mode: "development",// production
2021-04-05 11:10:54 +08:00
devtool: "#source-map",
}
2021-04-02 21:49:55 +08:00
};