mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-18 00:02:02 +03:00
chore(vite): Improve chunk size (#1283)
This commit is contained in:
parent
9576182093
commit
db3b0b06e4
2 changed files with 6 additions and 8 deletions
|
@ -3,7 +3,7 @@ import { formatEta, getDomainBody } from '@/helpers'
|
||||||
import { useMaindataStore } from '@/stores/maindata.ts'
|
import { useMaindataStore } from '@/stores/maindata.ts'
|
||||||
import { Torrent as QbitTorrent } from '@/types/qbit/models'
|
import { Torrent as QbitTorrent } from '@/types/qbit/models'
|
||||||
import { Torrent } from '@/types/vuetorrent'
|
import { Torrent } from '@/types/vuetorrent'
|
||||||
import { faker } from '@faker-js/faker'
|
import { faker } from '@faker-js/faker/locale/en'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
|
|
@ -22,12 +22,10 @@ export default defineConfig(({ command, mode }) => {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
manualChunks: {
|
manualChunks: {
|
||||||
// vue stuff
|
apexcharts: ['apexcharts', 'vue3-apexcharts'],
|
||||||
vue: ['vue', 'vue-router', 'pinia', 'pinia-plugin-persist'],
|
faker: ['@faker-js/faker'],
|
||||||
// vuetify stuff
|
vue: ['vue', 'vue-router', 'vue-i18n', 'vue3-toastify', 'vuedraggable', 'pinia', 'pinia-plugin-persist'],
|
||||||
vuetify: ['vuetify'],
|
vuetify: ['vuetify']
|
||||||
// faker stuff
|
|
||||||
faker: ['@faker-js/faker']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +55,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
base: './',
|
base: './',
|
||||||
useCredentials: true,
|
useCredentials: true,
|
||||||
workbox: {
|
workbox: {
|
||||||
maximumFileSizeToCacheInBytes: 10000000,
|
maximumFileSizeToCacheInBytes: 10_000_000,
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff,woff2}']
|
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff,woff2}']
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue