Initial commit
This commit is contained in:
23
electron-vue-template/vite.config.js
Normal file
23
electron-vue-template/vite.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const Path = require('path');
|
||||
const vuePlugin = require('@vitejs/plugin-vue')
|
||||
|
||||
const { defineConfig } = require('vite');
|
||||
|
||||
/**
|
||||
* https://vitejs.dev/config
|
||||
*/
|
||||
const config = defineConfig({
|
||||
root: Path.join(__dirname, 'src', 'renderer'),
|
||||
publicDir: Path.join(__dirname, 'public'),
|
||||
server: {
|
||||
port: 8083,
|
||||
},
|
||||
open: false,
|
||||
build: {
|
||||
outDir: Path.join(__dirname, 'build', 'renderer'),
|
||||
emptyOutDir: true,
|
||||
},
|
||||
plugins: [vuePlugin()],
|
||||
});
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user