You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
487 B

  1. const Path = require('path');
  2. const vuePlugin = require('@vitejs/plugin-vue')
  3. const { defineConfig } = require('vite');
  4. /**
  5. * https://vitejs.dev/config
  6. */
  7. const config = defineConfig({
  8. root: Path.join(__dirname, 'src', 'renderer'),
  9. publicDir: 'public',
  10. server: {
  11. port: 8080,
  12. },
  13. open: false,
  14. build: {
  15. outDir: Path.join(__dirname, 'build', 'renderer'),
  16. emptyOutDir: true,
  17. },
  18. plugins: [vuePlugin()],
  19. });
  20. module.exports = config;