Vite: Won't compile with img path starting with ./

Created on 21 Apr 2020  路  1Comment  路  Source: vitejs/vite

This won't stat (compile module) vite:

<img alt="Vue logo" src="./assets/logo.png" />

These will start even if logo is not found:

<img alt="Vue logo" src="assets/logo.png" />
<img alt="Vue logo" src="/assets/logo.png" />

I can't get any combination to work with both vite and vue-cli-service with vue 3.

Most helpful comment

Because it's not supported. This project isn't compatible with webpack based usage.

>All comments

Because it's not supported. This project isn't compatible with webpack based usage.

Was this page helpful?
0 / 5 - 0 ratings