Closed tjosepo closed 2 years ago
Hi! I'm interested in Packup and would love to see this project grow, so I made this PR.
Changes:
serve
build
<img>
examples/with-simple-assets/index.html
examples/with-imports/index.html
Example:
<html> <head> </head> <body> <h1>Hey!</h1> - <img src="images/my_image.png"> + <img src="index.e64db08d87e7ea59f8a01df1dcbb9de5.png"> </body></html>
A new image file is created. The orignal image src will be replaced by the new image filename.
src
Todos:
import url from './image.png";
Feedback is welcomed 🙂
By the way, the image I used for testing is the Deno logo.
Just realized I forgot about the srcset attribute and the <picture> element. I'm considering adding them in a separate PR.
srcset
<picture>
published as 0.1.11
Hi! I'm interested in Packup and would love to see this project grow, so I made this PR.
Changes:
serve
orbuild
, an image declared inside a of a<img>
element will be imported.examples/with-simple-assets/index.html
andexamples/with-imports/index.html
.Example:
A new image file is created. The orignal image
src
will be replaced by the new image filename.Todos:
import url from './image.png";
).Feedback is welcomed 🙂