Skip to content

๐Ÿš€ CSS & JS Minifier v1.1.0 - Internationalization & Package Optimization

Latest

Choose a tag to compare

@miguelcolmenares miguelcolmenares released this 18 Oct 02:53
· 10 commits to master since this release

๐ŸŒ CSS & JS Minifier v1.1.0 - Major Release

โœจ Key Features

๐ŸŒ Internationalization Support

  • 7 languages fully supported: English, Spanish, French, German, Portuguese, Japanese, Chinese Simplified
  • Custom l10n fallback system for maximum reliability
  • 30+ translated messages covering all user interactions
  • Automatic language detection based on VS Code settings

๐Ÿ“Š Size Reduction Statistics

  • Real-time statistics showing original vs minified file sizes
  • Percentage reduction display with human-readable format (KB/B)
  • Configurable display via showSizeReduction setting
  • Works with both in-place and new file minification

๐Ÿ“ฆ Package Size Optimization

  • 96.8% size reduction: From ~1.46 MB to 47.65 KB
  • Ultra-fast installation for better user experience
  • Icon optimization with oxipng (41KB โ†’ 22KB, 46% reduction)
  • Smart asset exclusion while preserving all functionality

๐Ÿ”ง Technical Improvements

๐Ÿ—๏ธ Architecture Enhancements

  • Modular architecture with clear separation of concerns
  • Enhanced error handling with detailed user feedback
  • Custom l10n fallback when VS Code native l10n fails
  • Notification system optimization preventing duplicate messages

๐Ÿงช Testing & Quality

  • Comprehensive test suite with 29 tests covering all scenarios
  • i18n test coverage with 20+ internationalization tests
  • Automatic test cleanup with improved reliability
  • VS Code tasks for efficient development workflows

๐Ÿ› Bug Fixes

โœ… CSS nth-child Selector Minification - FULLY RESOLVED

  • 41% size reduction confirmed on complex nth-child patterns
  • Mathematical expressions work perfectly
  • Selector filtering and complex combinations supported
  • Comprehensive test coverage for all edge cases

๐Ÿ”” Notification System

  • Fixed double notifications in manual minification commands
  • Suppressed auto-save notifications while preserving manual feedback
  • Parameter interpolation working correctly in all languages

๐Ÿ“‹ What's Included

๐ŸŒ Supported Languages

  • ๐Ÿ‡บ๐Ÿ‡ธ English (default)
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish (Espaรฑol)
  • ๐Ÿ‡ซ๐Ÿ‡ท French (Franรงais)
  • ๐Ÿ‡ฉ๐Ÿ‡ช German (Deutsch)
  • ๐Ÿ‡ง๐Ÿ‡ท Portuguese (Portuguรชs)
  • ๐Ÿ‡ฏ๐Ÿ‡ต Japanese (ๆ—ฅๆœฌ่ชž)
  • ๐Ÿ‡จ๐Ÿ‡ณ Chinese Simplified (็ฎ€ไฝ“ไธญๆ–‡)

โš™๏ธ New Configuration Options

  • showSizeReduction - Toggle size statistics display (default: true)
  • Enhanced autoOpenNewFile - Control file opening behavior
  • All existing configurations maintained and improved

๐Ÿ“ฆ Package Optimization Details

  • Extension size: 47.65 KB (24 files included)
  • Webpack bundle: 12.04 KB optimized code
  • Optimized icon: 22.22 KB with transparency preserved
  • Complete i18n: 16.79 KB for 7 languages
  • Essential docs: README, CHANGELOG, LICENSE included

๐Ÿš€ Installation & Usage

Install from VS Code Marketplace or run:

code --install-extension miguel-colmenares.css-js-minifier

Quick Start:

  1. Right-click any .css or .js file โ†’ Minify this File
  2. Keyboard shortcut: Ctrl+Alt+M (Windows/Linux) or Cmd+Alt+M (macOS)
  3. Auto-minify: Enable minifyOnSave in settings
  4. Language: Automatically uses your VS Code display language

๐Ÿ“ˆ Performance Benefits

  • 96.8% smaller package = 30x faster installation
  • Optimized API calls with 5-second timeout handling
  • Enhanced error messages in your preferred language
  • Real-time feedback on file size optimization

๐Ÿ”„ Migration from v1.0.0

โœ… Fully backward compatible - no configuration changes needed
โœ… Automatic language detection - works immediately
โœ… All existing features preserved and enhanced
โœ… New features enabled by default with smart defaults

๐Ÿ™ Acknowledgments

Special thanks to all users who reported issues and provided feedback to make this release possible. Your input helped us create a truly international and optimized extension.


Full changelog: CHANGELOG.md
Documentation: README.md
Issues & Support: GitHub Issues