I am using Webpack 4.x with FontAwesome 5 Pro and
clean-webpack-plugin to clean a dist directory upon every build. The issue that I am facing is that webfonts files (like *woff, etc) are missing after the initial Webpack run. Here is how it looks like:
starting Webpack in dev mode with
all css, js and font files are placed into
distwith hashed names, I can also see *woff files there
I make any change to any of my watched js or css files to trigger webpack-watch
clean-webpack-pluginstarts and cleans the
Webpack builds everything again, placing all my js/css and Font Awesome css js files into
distbut not the font files, so all
*wofffiles are completely missing.
My Font Awesome import looks like this
all.css has references to all webfont files, so why Webpack does not include them into the build?