mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
61cbf6f2cf
Co-authored-by: 翠 / green <green@sapphi.red>
17 lines
400 B
JavaScript
17 lines
400 B
JavaScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
cssCodeSplit: true,
|
|
lib: {
|
|
entry: [
|
|
fileURLToPath(new URL('src/css-entry-1.js', import.meta.url)),
|
|
fileURLToPath(new URL('src/css-entry-2.js', import.meta.url)),
|
|
],
|
|
name: 'css-code-split',
|
|
},
|
|
outDir: 'dist/css-code-split',
|
|
},
|
|
})
|