diff --git a/settings.js b/settings.js new file mode 100644 index 0000000000000000000000000000000000000000..00068ed6d8f184158399ca135c27fa1bd0402588 --- /dev/null +++ b/settings.js @@ -0,0 +1 @@ +export const useEnvironment = 'pro' diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000000000000000000000000000000000000..f26523e276e9ba2a2583ef7872f840c158dc7f28 --- /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 + }) + } +}