icons-variant
v1.0.9
Published
icon 2x 3x change name
Downloads
7
Readme
Rename and move icon
From
- ressources
- example
- file1.png
- [email protected]
- [email protected]
- example
- package.json
To
- your_path
- example
- example.png
- [email protected]
- [email protected]
- example
- package.json
Install
npm i icons-variant
Create Folder resource
Create a folder named 'resources' at the root directory of the project, at the same level as the package.json file.
resources
package.json
Setting
.package.json
"scripts": {
"rename-icons": "node node_modules/icons-variant/index.js your_path",
}
**Replace target icons ***
your_path => your tagget
Example
- asssets/icons
- src/assets/icons
- src/assets/icons/group
- ...
Run script
npm run rename-icons
npm run rename-icons -- optionName