fix(website): build error
This commit is contained in:
@@ -21,39 +21,13 @@ export default defineConfig({
|
|||||||
clearScreen: false,
|
clearScreen: false,
|
||||||
plugins: [react(), tailwindcss()],
|
plugins: [react(), tailwindcss()],
|
||||||
build: {
|
build: {
|
||||||
|
chunkSizeWarningLimit: 2000,
|
||||||
cssCodeSplit: true,
|
cssCodeSplit: true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
onwarn: function (message, handler) {
|
onwarn: function (message, handler) {
|
||||||
if (message.code === 'EVAL') return
|
if (message.code === 'EVAL') return
|
||||||
handler(message)
|
handler(message)
|
||||||
},
|
},
|
||||||
output: {
|
|
||||||
manualChunks(id) {
|
|
||||||
// React core
|
|
||||||
if (id.includes('node_modules/react-dom') || id.includes('node_modules/react/')) {
|
|
||||||
return 'react'
|
|
||||||
}
|
|
||||||
// Radix UI
|
|
||||||
if (id.includes('node_modules/@radix-ui')) {
|
|
||||||
return 'radix'
|
|
||||||
}
|
|
||||||
// Motion animation
|
|
||||||
if (id.includes('node_modules/motion')) {
|
|
||||||
return 'motion'
|
|
||||||
}
|
|
||||||
// Icons
|
|
||||||
if (
|
|
||||||
id.includes('node_modules/lucide-react') ||
|
|
||||||
id.includes('node_modules/simple-icons')
|
|
||||||
) {
|
|
||||||
return 'icons'
|
|
||||||
}
|
|
||||||
// i18n
|
|
||||||
if (id.includes('node_modules/i18next') || id.includes('node_modules/react-i18next')) {
|
|
||||||
return 'i18n'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user