Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ahoehne
/
minify
Public
forked from
tdewolff/minify
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
minify
js
js.go
on
change-docs
User selector
All users
All time
Commit history
Commits on Jan 20, 2025
JS: undo parseInt(n) => +n, for bad input the outputs are different
tdewolff
committed
ce2b8c9
View commit details
Copy full SHA for ce2b8c9
View code at this point
Browse repository at this point
JS: don't minify undefined/Infinity if that variable was declared, fixes #728
tdewolff
committed
b60a115
View commit details
Copy full SHA for b60a115
View code at this point
Browse repository at this point
JS: add shorter versions for isNaN, parseInt, Number, Math.pow, Math.abs, and Math.trunc, fixes #790
tdewolff
committed
ee34e32
View commit details
Copy full SHA for ee34e32
View code at this point
Browse repository at this point
JS: change undefined=>0[0] and void 0=>0[0], see #790
tdewolff
committed
55cda6b
View commit details
Copy full SHA for 55cda6b
View code at this point
Browse repository at this point
Commits on Oct 24, 2024
Remove deprecated ioutil package references
tdewolff
committed
1b48593
View commit details
Copy full SHA for 1b48593
View code at this point
Browse repository at this point
fix: optional chaining with bracket notation #757
ksw2000
committed
56a9bac
View commit details
Copy full SHA for 56a9bac
View code at this point
Browse repository at this point
Commits on Jul 10, 2024
JS: don't remove group around optional chaining expressions when it's the left side of a dot expression, fixes #724
tdewolff
committed
9fab517
View commit details
Copy full SHA for 9fab517
View code at this point
Browse repository at this point
JS: fix !"" => true, fixes #723
tdewolff
committed
3354711
View commit details
Copy full SHA for 3354711
View code at this point
Browse repository at this point
Commits on May 15, 2024
JS: don't trim escapes in tagged template expression, fixes #701
tdewolff
committed
35ef965
View commit details
Copy full SHA for 35ef965
View code at this point
Browse repository at this point
Commits on Apr 24, 2024
JS: use more efficient reordering of var declaration names
tdewolff
committed
94ceedd
View commit details
Copy full SHA for 94ceedd
View code at this point
Browse repository at this point
Commits on Jan 11, 2024
JS: fix number minify and tests, see #656
tdewolff
committed
0eaf60e
View commit details
Copy full SHA for 0eaf60e
View code at this point
Browse repository at this point
Commits on Oct 31, 2023
HTML: fix bug when parsing inline JavaScript, fixes #631
tdewolff
committed
652758d
View commit details
Copy full SHA for 652758d
View code at this point
Browse repository at this point
Commits on Oct 27, 2023
JS: support ECMAVersion < 2015 for template literals, fixes #621
tdewolff
committed
08752f6
View commit details
Copy full SHA for 08752f6
View code at this point
Browse repository at this point
JS: fix bug after changes in parse
tdewolff
committed
acfba0e
View commit details
Copy full SHA for acfba0e
View code at this point
Browse repository at this point
Commits on Oct 26, 2023
JS: remove import statement with empty named imports
tdewolff
committed
19c34c5
View commit details
Copy full SHA for 19c34c5
View code at this point
Browse repository at this point
Commits on Jul 31, 2023
JS: keep bang comments, fixes #552
tdewolff
committed
de84f71
View commit details
Copy full SHA for de84f71
View code at this point
Browse repository at this point
Commits on May 26, 2023
JS: fix race condition for ECMAScript version and remove deprecated NoNullishOperator (use Version instead), fixes #582
tdewolff
committed
a1ee177
View commit details
Copy full SHA for a1ee177
View code at this point
Browse repository at this point
Commits on Nov 3, 2022
JS: support different ECMAScript version to toggle optimizations, merge with NoNullishOperator and add NoOptionalCatchParameter, fixes #540
tdewolff
committed
a52d606
View commit details
Copy full SHA for a52d606
View code at this point
Browse repository at this point
Commits on Sep 8, 2022
JS: minify template literals, fixes #529
tdewolff
committed
6923a73
View commit details
Copy full SHA for 6923a73
View code at this point
Browse repository at this point
Commits on Jul 26, 2022
JS: set vardecl size limit to prevent timeout with OSSFuzz
tdewolff
committed
e036f96
View commit details
Copy full SHA for e036f96
View code at this point
Browse repository at this point
Commits on Jun 22, 2022
Remove DefaultMinifiers, which is equivalent to an empty &Minifier{}
tdewolff
committed
0c4ba39
View commit details
Copy full SHA for 0c4ba39
View code at this point
Browse repository at this point
Commits on Jun 21, 2022
JS: fix parenthesis around expressions object literals when followed by other nested statements in expressions, fixes #494
tdewolff
committed
36a653f
View commit details
Copy full SHA for 36a653f
View code at this point
Browse repository at this point
Commits on Jun 6, 2022
JS: add support for static class fields and static class blocks, fixes #488
tdewolff
committed
c72f866
View commit details
Copy full SHA for c72f866
View code at this point
Browse repository at this point
Commits on Jun 4, 2022
JS: optimize statement lists in labelled staments
tdewolff
committed
3a6f1f6
View commit details
Copy full SHA for 3a6f1f6
View code at this point
Browse repository at this point
Commits on Jun 3, 2022
JS: convert only strings in expressions to template literals, not object keys of import/export aliases/module names
tdewolff
committed
b31a40e
View commit details
Copy full SHA for b31a40e
View code at this point
Browse repository at this point
Commits on Jun 2, 2022
JS: write a!=null?a():undefined as a?.()
tdewolff
committed
b2c6f78
View commit details
Copy full SHA for b2c6f78
View code at this point
Browse repository at this point
Commits on Jun 1, 2022
JS: optimize a===null||a===undefined to a==null
tdewolff
committed
373a332
View commit details
Copy full SHA for 373a332
View code at this point
Browse repository at this point
JS: remove catch parameter if not used
tdewolff
committed
2e77ff3
View commit details
Copy full SHA for 2e77ff3
View code at this point
Browse repository at this point
Commits on May 28, 2022
JS: keep order of declaration for variable renaming of function arguments, improves GZIP compression
tdewolff
committed
0be056c
View commit details
Copy full SHA for 0be056c
View code at this point
Browse repository at this point
JS: merge string concatenations even if intertwined with other types
tdewolff
committed
a086566
View commit details
Copy full SHA for a086566
View code at this point
Browse repository at this point
JS: prefer double quotes for GZIP compression
tdewolff
committed
b715161
View commit details
Copy full SHA for b715161
View code at this point
Browse repository at this point
Commits on May 2, 2022
JS: keep argument to set method even when not used, fixes #481
tdewolff
committed
1745dc7
View commit details
Copy full SHA for 1745dc7
View code at this point
Browse repository at this point
Commits on Apr 10, 2022
JS: support minifying numbers with underscores
tdewolff
committed
f8ec698
View commit details
Copy full SHA for f8ec698
View code at this point
Browse repository at this point
Commits on Apr 5, 2022
JS: improve variable use counting
tdewolff
committed
4532c88
View commit details
Copy full SHA for 4532c88
View code at this point
Browse repository at this point
JS: improve conditional and unary-not expression compression
tdewolff
committed
a2eb81a
View commit details
Copy full SHA for a2eb81a
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.