🎉 初始化项目 electron13 + vue3 + typescript

This commit is contained in:
muwoo
2021-11-19 13:54:34 +08:00
parent b3ad8343ca
commit a7cbc2c890
15 changed files with 3020 additions and 38 deletions

25
vue.config.js Normal file
View File

@@ -0,0 +1,25 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = {
configureWebpack: {
resolve: {
alias: {
"@": path.join(__dirname, "./src/renderer"),
},
},
},
pluginOptions: {
electronBuilder: {
mainProcessFile: 'src/main/index.ts',
// Use this to change the entry point of your app's render process. default src/[main|index].[js|ts]
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
},
chainWebpackRendererProcess: (config) => {
config.entryPoints.clear(); // 清空默认入口
config.entry('test').add(path.join(__dirname, "./src/renderer/main.ts")); // 重新设置
},
},
},
};