webpack-ant-icon-loader
webpack-ant-icon-loader copied to clipboard
code splite @ant-design/icons
   "webpack": "^4.29.0" "webpack-ant-icon-loader": "^1.0.8"
我用vue-cli3建的项目,能给个vue.config.js的示例不?
chunkFilename 的名称能不能设置成动态的, 比如说有多个入口 其中的app入口 app.js 这个是入口文件 icon提取出来的名字是 app.icon.js 能这样实现吗?
Hi @Beven91 For Umijs , just config the umi part in readme is enough? ``` export default { chainWebpack(config, { webpack }) { // code split @ant-design/icons config.module .rule('@ant-design/icons') .include.add(require.resolve('@ant-design/icons/lib/dist')).end()...
this loader is great until antd fixes the issue in v4. however using it in `create-react-app` with `react-app-rewired` the icons chunk still gets inserted int to the index.html. anyway to...
你好,我按照你那个方法打包成功了但是在生产环境引用的时候报错    ``` "webpack": "3.5.1", "webpack-ant-icon-loader": "^1.0.8", ```
Hi @Beven91! Thank you so much for your work finally solving the antd icon bundle size issue–it has really helped me out. Is it OK if I open a PR...
It used to work on previous webpack and babel, but after i've upgraded to latest 4v webpack and also upgraded babel, all generated sass to css files are empty. I'm...
按照手顺,不好用
```js const path = require('path'); const { override, fixBabelImports, addLessLoader } = require('customize-cra'); module.exports = override( (config) => { config.module.rules.push({ loader: 'webpack-ant-icon-loader', enforce: 'pre', include: [ path.resolve('node_modules/@ant-design/icons/lib/dist'), ], }); return...
I faced one problem with SSR: there's a mismatch which says server code doesn't contain `path` inside `svg` element.