logue / vite-vuetify-ts-starter

@vitejs + @vuejs 3+@Vuetifyjs 3
MIT License
169 stars 38 forks source link

eslint | public files imports #8

Open f1eeman opened 1 year ago

f1eeman commented 1 year ago

image

<v-img :src="vueLogo" width="100" />

image It is necessary to set the eslint config for importing files from the public directory

logue commented 1 year ago

Assuming /cdnlogo.com_vuetify.svg is in the project root? For this usage, please enter <v-img src="/cdnlogo.com_vuetify.svg" /> directly without using the import statement.

f1eeman commented 1 year ago

Assuming /cdnlogo.com_vuetify.svg is in the project root?

./public/cdnlogo.com_vuetify.svg
./src

_For this usage, please enter directly without using the import statement._ I suppose, it may once happen that the users of such sample template template would have to dynamically determine relevant images. In this case, eslint that is bot set, would not interfere with work