mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
chore: update config
This commit is contained in:
parent
61599b0644
commit
9d09dc0664
@ -5,12 +5,12 @@ import pkg from '../package.json'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
mode: process.env.NODE_ENV,
|
||||
root: join(__dirname, '../src/renderer'),
|
||||
plugins: [vue()],
|
||||
base: './',
|
||||
build: {
|
||||
emptyOutDir: true,
|
||||
minify: false,
|
||||
outDir: '../../dist/renderer',
|
||||
},
|
||||
server: {
|
||||
|
@ -16,7 +16,6 @@ const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8')
|
||||
*/
|
||||
function getWatcher({ name, configFile, writeBundle }) {
|
||||
return viteBuild({
|
||||
mode: 'development',
|
||||
// Options here precedence over configFile
|
||||
build: {
|
||||
watch: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user