Skip to content

Commit

Permalink
chore(vite): add svg loader
Browse files Browse the repository at this point in the history
  • Loading branch information
raidorev committed Oct 14, 2022
1 parent c556bdc commit c20e176
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"stylelint-config-standard-vue": "^1.0.0",
"vite": "^3.1.6",
"vite-plugin-vuetify": "^1.0.0-alpha.17",
"vite-svg-loader": "^3.6.0",
"vue-cli-plugin-vuetify": "~2.5.8",
"vue-tsc": "^1.0.3"
}
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="vite-svg-loader" />

declare module '*.vue' {
import type { DefineComponent } from 'vue'
Expand Down
3 changes: 2 additions & 1 deletion apps/web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import vuetify from 'vite-plugin-vuetify'
import svgLoader from 'vite-svg-loader'

export default defineConfig({
server: {
port: 8080,
},
plugins: [vue(), vuetify({ autoImport: true })],
plugins: [vue(), vuetify({ autoImport: true }), svgLoader()],
})
143 changes: 141 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit c20e176

Please sign in to comment.