mirror of
https://github.com/lstoeferle/vite-vue2-starter
synced 2025-05-24 11:08:20 +08:00
fix: asset imports
This commit is contained in:
parent
cc93e59af9
commit
c7c28d051a
@ -11,6 +11,7 @@
|
||||
## Features
|
||||
|
||||
* ⚡️ [Vite](https://github.com/vitejs/vite), [Vue 2](https://github.com/vuejs/vue) - lightning fast
|
||||
* 📦 [Components auto importing](https://github.com/antfu/unplugin-vue-components)
|
||||
* 📥 [APIs auto importing](https://github.com/antfu/unplugin-auto-import) - use Composition API and others directly
|
||||
* 🚦 [Vue-Router](https://github.com/vuejs/vue-router)
|
||||
* 🎨 [Windi CSS](https://github.com/windicss/vite-plugin-windicss) - next generation utility-first CSS framework
|
||||
|
10
package.json
10
package.json
@ -10,22 +10,22 @@
|
||||
"dependencies": {
|
||||
"@vueuse/core": "^8.5.0",
|
||||
"core-js": "^3.21.1",
|
||||
"vue": "^2.7.0-beta.7",
|
||||
"vue": "^2.7.0",
|
||||
"vue-router": "^3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.18.8",
|
||||
"@iconify/json": "^2.1.14",
|
||||
"@vitejs/plugin-vue2": "^1.1.0",
|
||||
"@vitejs/plugin-vue2": "^1.1.2",
|
||||
"eslint": "^8.10.0",
|
||||
"husky": "^7.0.4",
|
||||
"typescript": "^4.6.2",
|
||||
"unplugin-auto-import": "^0.9.1",
|
||||
"unplugin-icons": "^0.14.5",
|
||||
"unplugin-vue-components": "^0.19.9",
|
||||
"unplugin-icons": "^0.14.4",
|
||||
"unplugin-vue-components": "^0.21.0",
|
||||
"vite": "^2.8.6",
|
||||
"vite-plugin-windicss": "^1.8.3",
|
||||
"vue-template-compiler": "^2.7.0-beta.7",
|
||||
"vue-template-compiler": "^2.7.0",
|
||||
"vue-template-es2015-compiler": "^1.9.1"
|
||||
}
|
||||
}
|
||||
|
5
src/components.d.ts
vendored
5
src/components.d.ts
vendored
@ -3,6 +3,8 @@
|
||||
// Read more: https://github.com/vuejs/core/pull/3399
|
||||
import '@vue/runtime-core'
|
||||
|
||||
export {}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
ButtonPrimary: typeof import('./components/shared/ButtonPrimary.vue')['default']
|
||||
@ -21,6 +23,5 @@ declare module '@vue/runtime-core' {
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
<img
|
||||
class="object-cover object-center rounded"
|
||||
alt="Vue logo"
|
||||
src="../assets/vue-logo.svg"
|
||||
src="@/assets/vue-logo.svg"
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
|
@ -7,7 +7,7 @@
|
||||
:to="{ name: 'Home' }"
|
||||
class="flex items-center mb-4 font-medium text-gray-900 title-font md:mb-0"
|
||||
>
|
||||
<img alt="Vite logo" src="../assets/vite-logo.svg" width="36px">
|
||||
<img alt="Vite logo" src="@/assets/vite-logo.svg" width="36px">
|
||||
<span class="ml-3 text-xl dark:text-white">
|
||||
{{ appName }}
|
||||
</span>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<img
|
||||
class="object-cover object-center w-5/6 mb-10 rounded lg:w-2/6 md:w-3/6"
|
||||
alt="hero"
|
||||
src="../assets/not-found.svg"
|
||||
src="@/assets/not-found.svg"
|
||||
>
|
||||
<div class="w-full text-center lg:w-2/3">
|
||||
<Heading1 class="text-red-500 dark:text-red-500">
|
||||
|
71
yarn.lock
71
yarn.lock
@ -296,15 +296,15 @@
|
||||
"@typescript-eslint/types" "5.28.0"
|
||||
eslint-visitor-keys "^3.3.0"
|
||||
|
||||
"@vitejs/plugin-vue2@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue2/-/plugin-vue2-1.1.0.tgz#377614e3ab81908f0815159f7ab3345a256edefa"
|
||||
integrity sha512-+vRQoBIM/u1Cwm0osttUoEzHQevFpLqCmMYeOqfOJdLh0OCBNU8M38vu2zjluFqOJIqgbE54Ruhir6TJ+IlkLA==
|
||||
"@vitejs/plugin-vue2@^1.1.2":
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue2/-/plugin-vue2-1.1.2.tgz#891f0acc5a6a2b4886a74cb8d6359d42f19f968a"
|
||||
integrity sha512-y6OEA+2UdJ0xrEQHodq20v9r3SpS62IOHrgN92JPLvVpNkhcissu7yvD5PXMzMESyazj0XNWGsc8UQk8+mVrjQ==
|
||||
|
||||
"@vue/compiler-sfc@2.7.0-beta.7":
|
||||
version "2.7.0-beta.7"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-2.7.0-beta.7.tgz#5ec0b429b9431d00797e8cf472e83280d57a869f"
|
||||
integrity sha512-h97n8UJnrK8jLKSUgaQk0iGwLvcxULJHV80jMiFFAlnjTvaoISfw2xmp8wxSvBM2P7ruaCat4oUKoywhJ6/nhA==
|
||||
"@vue/compiler-sfc@2.7.0":
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-2.7.0.tgz#1c203e85290688e10ed3e70b151b9a2f8acab9c1"
|
||||
integrity sha512-hPOI15RsXO1G8aK6FNF93ld9C/D4e/uAJBE59K8NnL8giuKqeVksvamgu4jKhCJ9f9bbUpj5BuSV3sufIx2hmw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.18.4"
|
||||
postcss "^8.4.14"
|
||||
@ -2262,7 +2262,7 @@ resolve-from@^4.0.0:
|
||||
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
|
||||
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
|
||||
|
||||
resolve@^1.10.0, resolve@^1.10.1, resolve@^1.20.0, resolve@^1.22.0:
|
||||
resolve@^1.10.0, resolve@^1.10.1, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1:
|
||||
version "1.22.1"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
|
||||
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
|
||||
@ -2600,10 +2600,10 @@ unplugin-auto-import@^0.9.1:
|
||||
unimport "^0.4.0"
|
||||
unplugin "^0.7.0"
|
||||
|
||||
unplugin-icons@^0.14.5:
|
||||
version "0.14.5"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-icons/-/unplugin-icons-0.14.5.tgz#baaeff3cb0c63ec53c770385e48bf3a77d8d18e8"
|
||||
integrity sha512-fxi/fuBZXtZu64L8iAPj+ecu/rnSvTbfR14RO44xIWdsI/Ohpzs9Gve7+nHIgD6JFrdtCfzGnXWBEVPbMGWX3A==
|
||||
unplugin-icons@^0.14.4:
|
||||
version "0.14.7"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-icons/-/unplugin-icons-0.14.7.tgz#b10e47a4643a4511d72cfaef8b0842b357898d1a"
|
||||
integrity sha512-TrNnEdpaXMdiG5BsCgvU6cv/gSLYvIk1f8wGCGZmOo4wmi3nqYBuqIEuiXhmmyXdDZuRRpCaOzCnCYYZ5H7U8g==
|
||||
dependencies:
|
||||
"@antfu/install-pkg" "^0.1.0"
|
||||
"@antfu/utils" "^0.5.2"
|
||||
@ -2613,10 +2613,10 @@ unplugin-icons@^0.14.5:
|
||||
local-pkg "^0.4.1"
|
||||
unplugin "^0.7.0"
|
||||
|
||||
unplugin-vue-components@^0.19.9:
|
||||
version "0.19.9"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-vue-components/-/unplugin-vue-components-0.19.9.tgz#87e913f3cf8cd1d36c6f5b597ca7a46cddb6229b"
|
||||
integrity sha512-i5mZtg85euPWZrGswFkoa9pf4WjKCP5qOjnwOyg3KOKVzFjnP3osCdrunQMjtoMKehTdz1vV6baZH8bZR4PNgg==
|
||||
unplugin-vue-components@^0.21.0:
|
||||
version "0.21.0"
|
||||
resolved "https://registry.yarnpkg.com/unplugin-vue-components/-/unplugin-vue-components-0.21.0.tgz#b0cbaee7ea54d576d0451326df4ce87068c37a4e"
|
||||
integrity sha512-U7uOMNmRJ2eAv9CNjP8QRvxs6nAe3FVQUEIUphC1FGguBp3BWSLgGAcSHaX2nQy0gFoDY2mLF2M52W/t/eDaKg==
|
||||
dependencies:
|
||||
"@antfu/utils" "^0.5.2"
|
||||
"@rollup/pluginutils" "^4.2.1"
|
||||
@ -2626,8 +2626,8 @@ unplugin-vue-components@^0.19.9:
|
||||
local-pkg "^0.4.1"
|
||||
magic-string "^0.26.2"
|
||||
minimatch "^5.1.0"
|
||||
resolve "^1.22.0"
|
||||
unplugin "^0.7.0"
|
||||
resolve "^1.22.1"
|
||||
unplugin "^0.7.1"
|
||||
|
||||
unplugin@^0.7.0:
|
||||
version "0.7.0"
|
||||
@ -2639,6 +2639,16 @@ unplugin@^0.7.0:
|
||||
webpack-sources "^3.2.3"
|
||||
webpack-virtual-modules "^0.4.3"
|
||||
|
||||
unplugin@^0.7.1:
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.7.1.tgz#1e8cb1ff26a76655eb5b40b4f67999594f43fac1"
|
||||
integrity sha512-Z6hNDXDNh9aimMkPU1mEjtk+2ova8gh0y7rJeJdGH1vWZOHwF2lLQiQ/R97rv9ymmzEQXsR2fyMet72T8jy6ew==
|
||||
dependencies:
|
||||
acorn "^8.7.1"
|
||||
chokidar "^3.5.3"
|
||||
webpack-sources "^3.2.3"
|
||||
webpack-virtual-modules "^0.4.4"
|
||||
|
||||
uri-js@^4.2.2:
|
||||
version "4.4.1"
|
||||
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
|
||||
@ -2709,10 +2719,10 @@ vue-router@^3.5.3:
|
||||
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.4.tgz#c453c0b36bc75554de066fefc3f2a9c3212aca70"
|
||||
integrity sha512-x+/DLAJZv2mcQ7glH2oV9ze8uPwcI+H+GgTgTmb5I55bCgY3+vXWIsqbYUzbBSZnwFHEJku4eoaH/x98veyymQ==
|
||||
|
||||
vue-template-compiler@^2.7.0-beta.7:
|
||||
version "2.7.0-beta.7"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.7.0-beta.7.tgz#fcfbe248c6c36053eccd687140bb3ee3999133ee"
|
||||
integrity sha512-fuWqoVnMTXcGXfYp1MqIfTEoH4CGX3xpJigLNM5BG5ETjDAm58QTZW7A34V7S3eGKYdx51Mx83UcxTeeJIIo1w==
|
||||
vue-template-compiler@^2.7.0:
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/vue-template-compiler/-/vue-template-compiler-2.7.0.tgz#b8ec6b9eb8ca99f20534ac75f0f374d3e48347cf"
|
||||
integrity sha512-b9kKOPNS6J2BVf9skXkKsUwQLP3Bjfb/gG6UoBt3fn4xUVEDko5TSWmkPGW6dSSeAOOvYEMALdouv9caKlTq0Q==
|
||||
dependencies:
|
||||
de-indent "^1.0.2"
|
||||
he "^1.2.0"
|
||||
@ -2722,12 +2732,12 @@ vue-template-es2015-compiler@^1.9.1:
|
||||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
||||
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
|
||||
|
||||
vue@^2.7.0-beta.7:
|
||||
version "2.7.0-beta.7"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.7.0-beta.7.tgz#c95a59446b89d5922755afebc24a1fc1b01124f7"
|
||||
integrity sha512-Zvo5rG515PwoDl8EutA7fsHpCX7hel5zNQF6R+Zudi7eIN4RI7STztQk2VHWLA591qdnrNfudH27RNwrWvEJ1A==
|
||||
vue@^2.7.0:
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/vue/-/vue-2.7.0.tgz#9542552e0460563feff11727949f8964e2501bed"
|
||||
integrity sha512-su25f1hocH+QNkVEqk+Oj7B+mkDIWU70l0YY7nYSJFEs3Z64njXxo65RUXnWH46ooEhKmEWyLdW6HcYn8coNrg==
|
||||
dependencies:
|
||||
"@vue/compiler-sfc" "2.7.0-beta.7"
|
||||
"@vue/compiler-sfc" "2.7.0"
|
||||
csstype "^3.1.0"
|
||||
|
||||
webpack-sources@^3.2.3:
|
||||
@ -2740,6 +2750,11 @@ webpack-virtual-modules@^0.4.3:
|
||||
resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.4.3.tgz#cd597c6d51d5a5ecb473eea1983a58fa8a17ded9"
|
||||
integrity sha512-5NUqC2JquIL2pBAAo/VfBP6KuGkHIZQXW/lNKupLPfhViwh8wNsu0BObtl09yuKZszeEUfbXz8xhrHvSG16Nqw==
|
||||
|
||||
webpack-virtual-modules@^0.4.4:
|
||||
version "0.4.4"
|
||||
resolved "https://registry.yarnpkg.com/webpack-virtual-modules/-/webpack-virtual-modules-0.4.4.tgz#a19fcf371923c59c4712d63d7d194b1e4d8262cc"
|
||||
integrity sha512-h9atBP/bsZohWpHnr+2sic8Iecb60GxftXsWNLLLSqewgIsGzByd2gcIID4nXcG+3tNe4GQG3dLcff3kXupdRA==
|
||||
|
||||
which-boxed-primitive@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"
|
||||
|
Loading…
Reference in New Issue
Block a user