mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: updates
This commit is contained in:
parent
950f72d4e8
commit
f54d2ded5c
26 changed files with 361 additions and 166 deletions
|
|
@ -3,14 +3,13 @@ import dotenv from 'dotenv'
|
|||
import { builtinModules } from 'module'
|
||||
import path, { join } from 'path'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import { Plugin, defineConfig } from 'vite'
|
||||
import { defineConfig, Plugin } from 'vite'
|
||||
import resolve from 'vite-plugin-resolve'
|
||||
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
||||
import { visualizer } from 'rollup-plugin-visualizer'
|
||||
|
||||
dotenv.config({ path: path.resolve(process.cwd(), '.env') })
|
||||
|
||||
console.log(join(__dirname, '../../.eslintrc.js'))
|
||||
|
||||
/**
|
||||
* @see https://vitejs.dev/config/
|
||||
*/
|
||||
|
|
@ -60,6 +59,16 @@ export default defineConfig({
|
|||
build: {
|
||||
sourcemap: process.env.NODE_ENV === 'debug',
|
||||
outDir: '../../dist/renderer',
|
||||
rollupOptions: {
|
||||
plugins: [
|
||||
visualizer({
|
||||
filename: './bundle-stats-renderer.html',
|
||||
gzipSize: true,
|
||||
projectRoot: 'packages/renderer',
|
||||
template: 'treemap',
|
||||
}),
|
||||
],
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue