miru/vite.config.js
ThaUnknown c2ca168aa3 fix: seekbar breaking with out of order chapters
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
2023-05-05 20:11:01 +02:00

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'
}
}
}
}
})