uglify-js-minify-css-allfiles 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,6 +19,7 @@ You can easily minify all files in a specific folder, with the option to exclude
19
19
  - [Babel Integration](#babel-integration)
20
20
  - [Image Versioning](#image-versioning)
21
21
  - [Logging System](#logging-system)
22
+ - [Source Maps](#source-maps)
22
23
  - [API Reference](#api-reference)
23
24
  - [Minification Options](#minification-options)
24
25
  - [Contributing](#contributing)
@@ -33,6 +34,7 @@ You can easily minify all files in a specific folder, with the option to exclude
33
34
  - 🛡️ Configurable file exclusion
34
35
  - 🔄 ES module support
35
36
  - 📊 Processing statistics and summaries
37
+ - 🔍 Source map generation for easier debugging
36
38
 
37
39
  ## Installation
38
40
 
@@ -160,6 +162,22 @@ await minifyAll('./src/', {
160
162
  });
161
163
  ```
162
164
 
165
+ ### Source Maps
166
+
167
+ Generate source maps for JavaScript files to aid in debugging minified code:
168
+
169
+ - Maps compressed code back to original source code
170
+ - Automatically creates `.map` files alongside minified JavaScript
171
+ - Seamless integration with browser developer tools
172
+ - Works with or without Babel transformation
173
+ - Helps maintain debuggability in production environments
174
+
175
+ ```js
176
+ await minifyAll('./src/', {
177
+ useJsMap: true,
178
+ });
179
+ ```
180
+
163
181
  ## API Reference
164
182
 
165
183
  ### minifyAll(contentPath, options)
@@ -175,6 +193,7 @@ Main function to process files.
175
193
  - `cssMinifyOptions` (object): CSS minification options
176
194
  - `useVersioning` (object): Image versioning configuration
177
195
  - `extensions` (string[]): List of image extensions to version
196
+ - `useJsMap` (boolean): Enable source map generation for JavaScript files
178
197
 
179
198
  ### Babel Options
180
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uglify-js-minify-css-allfiles",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "you will be able to minify all files as same file names which is js or css",
5
5
  "main": "minify.js",
6
6
  "type": "module",