vite-vuetify-ts-starter icon indicating copy to clipboard operation
vite-vuetify-ts-starter copied to clipboard

eslint | public files imports

Open f1eeman opened this issue 2 years ago • 2 comments

image

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

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

f1eeman avatar Dec 11 '22 05:12 f1eeman

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.

logue avatar Dec 19 '22 06:12 logue

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

f1eeman avatar Dec 19 '22 08:12 f1eeman