加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
ssnangua 提交于 2023-09-07 20:56 . feat: 1.4.0, add join and split tool
const { defineConfig } = require("@vue/cli-service");
const path = require("path");
module.exports = defineConfig({
pages: {
main: {
entry: "src/main/main.js",
template: "public/index.html",
filename: "main.html",
},
editImage: {
entry: "src/tool-edit-image/editImage.js",
template: "public/index.html",
filename: "edit-image.html",
},
joinSplitTool: {
entry: "src/tool-join-split/joinSplitTool.js",
template: "public/index.html",
filename: "join-split-tool.html",
},
icoTool: {
entry: "src/tool-ico/icoTool.js",
template: "public/index.html",
filename: "ico-tool.html",
},
animeTool: {
entry: "src/tool-anime/animeTool.js",
template: "public/index.html",
filename: "anime-tool.html",
},
filterTool: {
entry: "src/tool-filter/filterTool.js",
template: "public/index.html",
filename: "filter-tool.html",
},
pdfTool: {
entry: "src/tool-pdf/pdfTool.js",
template: "public/index.html",
filename: "pdf-tool.html",
},
mirageTank: {
entry: "src/tool-mirage-tank/mirageTank.js",
template: "public/index.html",
filename: "mirage-tank.html",
},
},
productionSourceMap: false,
// transpileDependencies: true,
publicPath: "",
// chainWebpack: (config) => {
// config.optimization.delete("splitChunks");
// },
configureWebpack: {
target: "electron-renderer",
node: {
__dirname: true,
},
module: {
rules: [
{
test: /\.node$/,
loader: "node-loader",
options: {
name(resourcePath) {
return path.basename(resourcePath);
},
},
},
],
},
},
pluginOptions: {
i18n: {
locale: "en",
fallbackLocale: "en",
localeDir: "locales",
enableLegacy: false,
runtimeOnly: false,
compositionOnly: false,
fullInstall: true,
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化