iconfont-webpack-plugin
iconfont-webpack-plugin copied to clipboard
Webpack 5 support
Is there any update on this @tamara027 / @jantimon ? I'm trying to upgrade to webpack 5 and iconfont is not working with assets modules.
This looks like the thing we need? (Also thanks for the work here!)
I managed (by trial and error) to make it work in webpack 5.87.0 by removing double quotes on this line:
const url = 'data:application/x-font-woff;charset=utf-8;base64,' + result;
I'm not an expert in webpack, not sure if this is conceptually correct (and why it works 😀).