fix: asset build opts

This commit is contained in:
ThaUnknown 2022-07-05 21:09:35 +02:00
parent 28fceab1f4
commit b41cd95597
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,6 @@
import JASSUB from 'jassub'
import workerUrl from 'jassub/dist/jassub-worker.js?url'
import 'jassub/dist/jassub-worker.wasm?raw'
import 'jassub/dist/jassub-worker.wasm?url'
import { toTS, videoRx, subRx } from './util.js'
import { client } from '@/modules/torrent.js'

View file

@ -21,5 +21,12 @@ export default defineConfig({
},
plugins: [commonjsExternals({ externals: commonjsPackages }), svelte()],
root: path.resolve(process.cwd(), 'src/renderer'),
base: './'
base: './',
build: {
rollupOptions: {
output: {
assetFileNames: '[name].[ext]'
}
}
}
})