odoe / jsapi-webpack

Sample using the webpack plugin with babel
20 stars 10 forks source link

cache-loader causing issue with fonts #9

Open nathanielrindlaub opened 5 years ago

nathanielrindlaub commented 5 years ago

Hi @odoe -

Thanks so much for the video and sample code. I'm new to webpack and the resources you've put together have been invaluable for getting started with the @arcgis/wepack-plugin.

I ran up against a small issue though: a bunch of the WOFF and TTF fonts (Avenir Next, CalciteWebCoreIcons) would load fine the first time I fired up the app on the webpack-dev-server, but I'd get 404s on all subsequent runs. Took a look at the sources and it doesn't look like the build/ directory gets built at all. All seems to work fine if you don't use the cache-loader for any font files, so perhaps it has something to do with that?