Minify File
A simple VS Code extension to minify .js and .css files directly from the file explorer.
Features
- Right-click any
.js or .css file in the explorer to minify it.
- Creates a
.min.js or .min.css version of the file in the same folder.
- Skips files that are already minified (
.min.js , .min.css ).
- Displays the amount of size saved after minification.
- Output shown in both a popup and a dedicated "Minify" output channel.
Usage
- Right-click a file (e.g.
style.css or app.js ) in the VS Code explorer.
- Choose "Minify File" from the context menu.
- A minified version (e.g.
style.min.css or app.min.js ) will be created in the same directory.
- Don't forget to change
<script src="app.min.js"></script> or <link rel="stylesheet" href="style.min.css" /> ...
Already minified files will be ignored.
Credits
Created by Richard Carlier with ❤️
Requirements
- No special dependencies required — the extension uses:
Extension Settings
This extension does not currently contribute any settings.
Known Issues
None at the moment.
Release Notes
1.0.0
- Initial release of Minify File
Enjoy!
| |