It would be really awesome if you could add functionality similar to that of html-loader.
html-loader parses the html and automatically adds assets as dependencies. Something similar should be possible for pug.
TMK this happens on the basis of a list of tags and attributes that should be treated as assets.
Adding this functionality would eliminate the need to use require for assets making the DX even more awesome.
(parcel also does this. HTML as entypoint with automatic asset loading)
Using require for assets could ideally still be optionally possible.
It would be really awesome if you could add functionality similar to that of
html-loader.html-loaderparses the html and automatically adds assets as dependencies. Something similar should be possible for pug.TMK this happens on the basis of a list of tags and attributes that should be treated as assets.
Adding this functionality would eliminate the need to use require for assets making the DX even more awesome.
(parcel also does this. HTML as entypoint with automatic asset loading)
Using require for assets could ideally still be optionally possible.