1.0.5 • Published 1 year ago

clean-webpack-images v1.0.5

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
1 year ago

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

  1. Ensure Node.js is installed on your system.
  2. Clone this repository or download the clean-images.js file.
  3. Customize the imgDir and scssDir variables in the script to match your project directory structure.
  4. 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

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago