adonisjs / v6-docs

Documentation website for AdonisJS v6
38 stars 53 forks source link

Impossible to import additional assets #117

Closed ad-momo closed 3 weeks ago

ad-momo commented 3 weeks ago

Hello,

For me this trick not work : https://github.com/adonisjs/v6-docs/blob/10560881314b070a5fac99b873973671e25af93b/content/docs/basics/vite.md?plain=1#L329

Vite detect the module is not use in JS file, so is not compile.

In addition, if I write this below then the file generate is js file, not a svg file.

const modules  = import.meta.glob(['../images/**'])
console.log(modules)

Thanks 😄

RomainLanz commented 3 weeks ago

Hey @ad-momo! 👋🏻

This is more a question than an issue with the framework itself. Since we want to keep this space clean, please use GitHub Discussion or the Discord Server for this kind of request.

ad-momo commented 3 weeks ago

Ha yes sorry 😁 thank you for reply !