@antstudiocz/ant-icons
v2.1.1
Published
Aicons web components
Downloads
22
Readme
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'),
])
]
}