Closed Kadrian closed 8 years ago
Okay, so I think I understand webpack a little better: Webpack will handle all static assets through URLs and requires in my project. In the beginning it parses my project using the entry point main.js. Then I have to require fonts and everything else in there somehow, right?
@Kadrian These instructions worked for me for SVG files, for example. Should work for many others as well: https://github.com/christianalfoni/react-webpack-cookbook/wiki/Loading-SVG
Closing this for now, please reopen if more issues. Thanks for helping out @enguyen :-)
I created a
dist
folder and referenced it directly from my html file with a<link>
tag. That worked. But that's certainly not how it's intended, since thedist
directory is on.gitignore
by default, right?The same applies to images / fonts and so on. How to reference them?