Closed tobias-kuendig closed 7 years ago
Absolutely. I have been getting a few questions via email about Webpack usage, I'll add in some troubleshooting tips for developers like yourself wanting to use Webpack, maybe even code samples and whatnot.
Changes to the webpack plugin which the Aurelia team are working on means that some of the issues around images are fixed when that stuff stabilises. However, I'll be writing up something anyway for situations where Aurelia won't cover you.
The latest plugin addresses some of the image path issues as paths are now checked upon compile time using the latest version of the Webpack Plugin. Still some stuff to write about on this though.
Latest Webpack plugin handles images to the point where I didn't actually need to add anything into the book. Closing this for now.
In the chapter
Working With Webpack
underCaveats
you writeIt would be awesome to get some troubleshooting tips in this section.
I'm currently completely lost on how to use images with webpack in Aurelia. Most of the examples you find online are for react, where you simply use <img src="' + require('img.jpg') + '" /> This is not possible in Aurelia.
It would be great to have examples on...
dist
when bundling