Browser compatibility

jampack can improve browser compatibility by adding fallbacks, vendor prefixes or lowering syntax of cutting edge CSS features.

CSS transpilation

You can configure your level of compatibility by configuring the browser targets using the browserslist query syntax.

{
  "general": {
    "browserslist": 'last 12 versions'
  }
}

See browserslist for more details about the query syntax. See ligthningcss transpilation for examples of transpilation.

Demo

SOURCE

JAMPACKED

_jampack anemones.jpg 86155 anemones.jpg 78728index.html 288 index.html 320styles.css 415 styles.css 351

SOURCE

  • anemones.jpg 86155
  • index.html 288
  • styles.css 415

JAMPACKED

  • _jampack
  • anemones.jpg 78728
  • index.html 320
  • styles.css 351
Source Open in new tab
Jampacked Open in new tab
Terminal
__                                    __    
    |__|____    _____ ___________    ____ |  | __
    |  \__  \  /     \\____ \__  \ _/ ___\|  |/ /
    |  |/ __ \|  Y Y  \  |_> > __ \\  \___|    < 
/\__|  (____  /__|_|  /   __(____  /\___  >__|_ \
\______|    \/      \/|  |       \/     \/     \/
 v0.24.4              |__| by β€Ήdivβ€ΊRIOTS

Options:
{}

Merging default config with:
{
  "general": {
    "browserslist": "defaults"
  }
}

 PASS 1 - Optimizing 
β–Ά index.html
Done: 21.105ms

 PASS 2 - Compressing the rest 
Done: 78.532ms

 Summary 
╔════════╀════════════╀══════════╀════════════╀══════════╗
β•‘ Action β”‚ Compressed β”‚ Original β”‚ Compressed β”‚     Gain β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
β•‘ .html  β”‚      1 / 1 β”‚ 321.00 B β”‚   320.00 B β”‚  -1.00 B β•‘
β•‘ .css   β”‚      1 / 1 β”‚ 415.00 B β”‚   351.00 B β”‚ -64.00 B β•‘
β•‘ .jpg   β”‚      1 / 1 β”‚ 84.14 KB β”‚   76.88 KB β”‚ -7.25 KB β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
β•‘ Total  β”‚      3 / 3 β”‚ 84.85 KB β”‚   77.54 KB β”‚ -7.32 KB β•‘
β•šβ•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•


 βœ” No issues