Skip to content

Commit

Permalink
fix(dashboard): rollup options
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Feb 28, 2025
1 parent bc6b887 commit a7a4850
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import autoprefixer from 'autoprefixer'
import tailwind from 'tailwindcss'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import path from "node:path";
import autoprefixer from 'autoprefixer'
import path from 'node:path'
import { URL, fileURLToPath } from 'node:url'
import tailwind from 'tailwindcss'
import { defineConfig } from 'vite'
import { ViteMinifyPlugin } from 'vite-plugin-minify'
import webfontDownload from 'vite-plugin-webfont-dl';
import webfontDownload from 'vite-plugin-webfont-dl'

// https://vite.dev/config/
export default defineConfig({
Expand All @@ -25,7 +24,9 @@ export default defineConfig({
module: 'petite-vue-i18n',
include: [path.resolve(__dirname, './src/locales/**')],
}),
webfontDownload(['https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Russo+One&display=swap']),
webfontDownload([
'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Russo+One&display=swap',
]),
],
clearScreen: false,
resolve: {
Expand All @@ -36,14 +37,14 @@ export default defineConfig({
build: {
target: 'esnext',
sourcemap: false,
},
rollupOptions: {
output: {
manualChunks: {
vue: ['vue'],
'vue-router': ['vue-router'],
'vue-i18n': ['vue-i18n'],
pinia: ['pinia'],
rollupOptions: {
output: {
manualChunks: {
vue: ['vue'],
'vue-router': ['vue-router'],
'vue-i18n': ['vue-i18n'],
pinia: ['pinia'],
},
},
},
},
Expand Down

0 comments on commit a7a4850

Please sign in to comment.