1- import { fileURLToPath , URL } from 'node:url'
2-
3- import { defineConfig } from 'vite'
4- import autoprefixer from 'autoprefixer'
5- import tailwind from 'tailwindcss'
1+ import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
62import vue from '@vitejs/plugin-vue'
73import vueJsx from '@vitejs/plugin-vue-jsx'
8- import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
9- import path from "node:path" ;
4+ import autoprefixer from 'autoprefixer'
5+ import path from 'node:path'
6+ import { URL , fileURLToPath } from 'node:url'
7+ import tailwind from 'tailwindcss'
8+ import { defineConfig } from 'vite'
109import { ViteMinifyPlugin } from 'vite-plugin-minify'
11- import webfontDownload from 'vite-plugin-webfont-dl' ;
10+ import webfontDownload from 'vite-plugin-webfont-dl'
1211
1312// https://vite.dev/config/
1413export default defineConfig ( {
@@ -25,7 +24,9 @@ export default defineConfig({
2524 module : 'petite-vue-i18n' ,
2625 include : [ path . resolve ( __dirname , './src/locales/**' ) ] ,
2726 } ) ,
28- 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' ] ) ,
27+ webfontDownload ( [
28+ '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' ,
29+ ] ) ,
2930 ] ,
3031 clearScreen : false ,
3132 resolve : {
@@ -36,14 +37,14 @@ export default defineConfig({
3637 build : {
3738 target : 'esnext' ,
3839 sourcemap : false ,
39- } ,
40- rollupOptions : {
41- output : {
42- manualChunks : {
43- vue : [ 'vue' ] ,
44- 'vue-router ' : [ 'vue-router ' ] ,
45- 'vue-i18n' : [ 'vue-i18n ' ] ,
46- pinia : [ 'pinia' ] ,
40+ rollupOptions : {
41+ output : {
42+ manualChunks : {
43+ vue : [ 'vue' ] ,
44+ ' vue-router' : [ 'vue-router ' ] ,
45+ 'vue-i18n ' : [ 'vue-i18n ' ] ,
46+ pinia : [ 'pinia ' ] ,
47+ } ,
4748 } ,
4849 } ,
4950 } ,
0 commit comments