@antstudiocz/ant-icons

2.1.1 • Public • Published

ai-slim

Usage

Basic

webpack.config.js
const AntIcons = require('ant-icons/lib/plugin')

module.exports = {
  // ...webpack config
  plugins: [
    ...AntIcons()
  ]
}

Custom icon path

webpack.config.js
const AntIcons = require('ant-icons/lib/plugin')
const {resolve} = require('path')

module.exports = {
  // ...webpack config
  plugins: [
    ...AntIcons(resolve(__dirname, 'my', 'custom', 'path', '*.svg'))
  ]
}

Multiple icon paths

webpack.config.js
const AntIcons = require('ant-icons/lib/plugin')
const {resolve} = require('path')

module.exports = {
  // ...webpack config
  plugins: [
    ...AntIcons([
      resolve(__dirname, 'my', 'custom', 'path', '*.svg'),
      resolve(__dirname, 'another', 'custom', 'path', '*.svg'),
      resolve(__dirname, 'and', 'another', 'path', '*.svg'),
    ])
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @antstudiocz/ant-icons

Weekly Downloads

2

Version

2.1.1

License

MIT

Unpacked Size

17 kB

Total Files

8

Last publish

Collaborators

  • alesmraz
  • dbalik
  • sirpole