@hjin/fuck-anticon
v0.4.1
Published
AntD or NgZorro font icon local deployment
Downloads
9
Maintainers
Readme
fuck-anticon
for Ng Zorro or Antd(React) font-icon Local Deployment.
Feature
- No more request ali server;
- Use Webpack for bundle fonts;
- No less.
Install
npm install --save-dev @hjin/fuck-anticon
# or
yarn add --dev @hjin/fuck-anticon
- Add PostInstall to your package.json
"scripts": {
"postinstall": "fuck-anticon"
},
- (Optional) Add fonts to your global style Only for NgZorro 0.6 or lower.
@font-face {
font-family: 'anticon';
src: url('../node_modules/ng-zorro-antd/src/assets/fonts/iconfont.eot'); /* IE9*/
src:
/* IE6-IE8 */
url('../node_modules/ng-zorro-antd/src/assets/fonts/iconfont.eot?#iefix') format('embedded-opentype'),
/* chrome、firefox */
url('../node_modules/ng-zorro-antd/src/assets/fonts/iconfont.woff') format('woff'),
/* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
url('../node_modules/ng-zorro-antd/src/assets/fonts/iconfont.ttf') format('truetype'),
/* iOS 4.1- */
url('../node_modules/ng-zorro-antd/src/assets/fonts/iconfont.svg#iconfont') format('svg');
}
自己动手丰衣足食 NG-ZORRO/ng-zorro-antd#158