Importing images with Webpacker

added by JavaScript Kicks
12/19/2019 1:02:41 PM

285 Views

Webpack isn't just for JavaScript. You can bundle images with it too. Webpacker makes it relatively easy to work with images, but it is admittedly confusing at first: Images in JavaScript? In this post, we'll demonstrate how to reference Webpacker images from your JavaScript, CSS, and Rails views.


0 comments