vite-plugin-pug
vite-plugin-pug copied to clipboard
images referenced in pug are not included in production build
when using an image tag inside a pug file like this:
img#logo(src="./assets/example.png")
the image is not included in the production builds dist
folder and the file path is not transformed.
Thanks!
Same problem Here!
img(src=
${images}/example.png)
Not working.
Basically, No assets will be included in production build when they are linked using the plugin. CSS, JS or images.
If you place images in public folder like so: public/example.png
and reference with absolute path img(src="/example.png")
then this seems fine. Obviously not always ideal.