metacubexd/vite.config.ts

15 lines
387 B
TypeScript
Raw Permalink Normal View History

import { defineConfig, splitVendorChunkPlugin } from 'vite'
2023-09-01 17:08:00 +08:00
import { VitePWA } from 'vite-plugin-pwa'
2023-08-24 04:20:53 +08:00
import solidPlugin from 'vite-plugin-solid'
export default defineConfig({
base: './',
build: { chunkSizeWarningLimit: 1000 },
resolve: { alias: { '~': '/src' } },
2023-09-01 17:08:00 +08:00
plugins: [
solidPlugin(),
splitVendorChunkPlugin(),
VitePWA({ registerType: 'autoUpdate' }),
],
2023-08-24 04:20:53 +08:00
})