mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-12 22:30:21 +00:00
fix: seekbar breaking with misstimed chapters fix: playnext/last not available when no media was detected fix: NCOP/NCED playing from batches fix: aniskip lookup error on files with no media
34 lines
787 B
JavaScript
34 lines
787 B
JavaScript
import path from 'path'
|
|
import process from 'process'
|
|
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import commonjs from 'vite-plugin-commonjs'
|
|
|
|
const root = path.resolve(process.cwd(), 'src/renderer')
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
return {
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve('src/renderer/src')
|
|
}
|
|
},
|
|
plugins: [mode !== 'development' && commonjs(), svelte()],
|
|
root,
|
|
server: {
|
|
hmr: false
|
|
},
|
|
base: './',
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
assetFileNames: '[name].[ext]'
|
|
},
|
|
input: {
|
|
index: root + '/index.html',
|
|
torrent: root + '/webtorrent.html'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|