1.0.5 • Published 1 year ago
clean-webpack-images v1.0.5
Clean Unused Images Script
This Node.js script is designed to clean up unused images from a project directory. It scans through SCSS files to find image references and compares them against the actual image files. Unused images are then deleted from the specified directory.
Usage
- Ensure Node.js is installed on your system.
- Clone this repository or download the
clean-images.js
file. - Customize the
imgDir
andscssDir
variables in the script to match your project directory structure. Run the script using Node.js:
node clean-images.js
Dependencies
glob
: Used for file path pattern matching.fs
: File system module for interacting with the file system.path
: Module for working with file paths.
License
This script is released under the ISC License. See LICENSE for more details.
Author
primaryworm5