mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Enable source map and split vendor chunk
This commit is contained in:
parent
2485bb945d
commit
f7d2f6fdac
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
import preact from '@preact/preset-vite';
|
||||
import { resolve } from 'path';
|
||||
import { defineConfig } from 'vite';
|
||||
import { defineConfig, splitVendorChunkPlugin } from 'vite';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [preact()],
|
||||
plugins: [preact(), splitVendorChunkPlugin()],
|
||||
build: {
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, 'index.html'),
|
||||
|
|
Loading…
Reference in a new issue