nguyenbatranvan / vite-multiple-assets

npm package
https://www.npmjs.com/package/vite-multiple-assets
8 stars 7 forks source link

All assets are served as `Content-Type: text/plain` #1

Closed zdila closed 1 year ago

zdila commented 1 year ago

All assets are served as Content-Type: text/plain.

nguyenbatranvan commented 1 year ago

All assets are served as Content-Type: text/plain.

what is your problem? Can add detailed description about it

zdila commented 1 year ago

In my case the problem is that svg files are served with Content-Type: text/plain and browser then won't display it as image.

nguyenbatranvan commented 1 year ago

In my case the problem is that svg files are served with Content-Type: text/plain and browser then won't display it as image.

i just updated the new version, please install it and clear the browser cache to try again. Currently I only fix for uploading svg and image. There may be support for dynamic content-type in the near future. Thank you for your contribution

nguyenbatranvan commented 1 year ago

In my case the problem is that svg files are served with Content-Type: text/plain and browser then won't display it as image.

I have just released a version that supports dynamic content-type.This is version 1.1.0. I will close this issue here