From 4fa7714cd0753d75926437ebb59fb346e9108087 Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Fri, 3 Feb 2023 02:08:04 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E6=88=90webpack=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dong Xia --- vue.config.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vue.config.js diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..f26523e --- /dev/null +++ b/vue.config.js @@ -0,0 +1,37 @@ +module.exports = { + // 输出目录 + outputDir: 'mpms', + // 控制静态资源使用相对路径 + publicPath: './', + assetsDir: 'static', + // 本地服务器 + devServer: { + port: 8080, + open: true + }, + configureWebpack: { + name: '系统软件安装管理平台', + devtool: '#eval-source-map' + }, + pluginOptions: { + // electron构建时的插件 + electronBuilder: { + // nodeIntegration: true, + builderOptions: { + productName: 'mini-system' + }, + icon: 'build/icons/32x32.png', + desktop: { + Icon: 'build/icons/32x32.png' + } + } + }, + // 系统打开时的标题 + chainWebpack: config => { + config.plugin('html').tap(args => { + args[0].title = '系统软件安装管理平台' + args[0].build = new Date().getTime() + return args + }) + } +} -- Gitee From 241e79cc333ede6f62cd55008f2a4b56086abda9 Mon Sep 17 00:00:00 2001 From: Dong Xia Date: Fri, 3 Feb 2023 02:08:47 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dong Xia --- settings.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 settings.js diff --git a/settings.js b/settings.js new file mode 100644 index 0000000..00068ed --- /dev/null +++ b/settings.js @@ -0,0 +1 @@ +export const useEnvironment = 'pro' -- Gitee