2.1.1 • Published 4 years ago

@antstudiocz/ant-icons v2.1.1

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

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'),
    ])
  ]
}
2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago