mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16: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/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
mode: process.env.NODE_ENV,
|
||||||
root: join(__dirname, '../src/renderer'),
|
root: join(__dirname, '../src/renderer'),
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
base: './',
|
base: './',
|
||||||
build: {
|
build: {
|
||||||
emptyOutDir: true,
|
emptyOutDir: true,
|
||||||
minify: false,
|
|
||||||
outDir: '../../dist/renderer',
|
outDir: '../../dist/renderer',
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
@ -16,7 +16,6 @@ const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8')
|
|||||||
*/
|
*/
|
||||||
function getWatcher({ name, configFile, writeBundle }) {
|
function getWatcher({ name, configFile, writeBundle }) {
|
||||||
return viteBuild({
|
return viteBuild({
|
||||||
mode: 'development',
|
|
||||||
// Options here precedence over configFile
|
// Options here precedence over configFile
|
||||||
build: {
|
build: {
|
||||||
watch: {},
|
watch: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user