For use Ant Design's iconfont without alicdn.
yarn add @whtsky/antd-iconfont
In your webpack config:
{
test: /\.less$/,
loader: [
{
loader: require.resolve('css-loader'),
},
{
loader: require.resolve('less-loader'),
options: {
modifyVars: {
'@icon-url':'"~@whtsky/antd-iconfont/iconfont"'
},
javascriptEnabled: true,
},
},
]
}