Skip to content

Commit

Permalink
Merge pull request #127 from jpkleemans/example-use-local-npm-package
Browse files Browse the repository at this point in the history
Load vite-svg-loader via npm in example project
  • Loading branch information
jpkleemans authored Nov 17, 2023
2 parents 7fbf9e8 + 9581b3a commit 1b554ee
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions example/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 example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"vite-svg-loader": "file:..",
"vue": "^3.3.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// <reference types="vite/client" />
/// <reference types="../../" />
/// <reference types="vite-svg-loader" />
2 changes: 1 addition & 1 deletion example/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import viteSvgLoader from '../'
import viteSvgLoader from 'vite-svg-loader'

// https://vitejs.dev/config/
export default defineConfig({
Expand Down

0 comments on commit 1b554ee

Please sign in to comment.