Skip to content

Commit

Permalink
feat: Add vue support in vite.
Browse files Browse the repository at this point in the history
  • Loading branch information
danimalweb committed Mar 13, 2024
1 parent 2c40004 commit 7e1829c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@types/node": "^20.10.6",
"@types/webfontloader": "^1.6.38",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vitest/coverage-istanbul": "^1.1.1",
"@vitest/ui": "^1.1.1",
"@vue/apollo-composable": "^4.0.0-beta.12",
Expand Down
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
import VitePluginBrowserSync from 'vite-plugin-browser-sync';
import { chunkSplitPlugin } from 'vite-plugin-chunk-split';
import path from 'path';
import vue from '@vitejs/plugin-vue';

export default ({ mode }: { mode: string }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
Expand Down Expand Up @@ -34,6 +35,7 @@ export default ({ mode }: { mode: string }) => {
},
},
plugins: [
vue(),
eslintPlugin(),
chunkSplitPlugin({
strategy: 'unbundle',
Expand Down

0 comments on commit 7e1829c

Please sign in to comment.