Minification (programming): Difference between revisions

Content deleted Content added
ok
Tags: Reverted references removed Visual edit Mobile edit Mobile web edit
m Rollback edit(s) by 2001:FB1:159:1CE3:49BA:E77C:8A5:9D4F (talk): Vandalism (UV 0.1.5)
Line 27:
 
==Source mapping==
A '''Source Map''' is a [[file format]] that allows software tools for [[JavaScript]] to display different code to a user than the code actually executed by the computer. For example, to aid in [[debugging]] of minified code, by "mapping" this code to the original unminified [[source code]] instead.
 
The original format was created by Joseph Schorr as part of the Closure Inspector minification project.<ref name=":0">{{Cite web|date=2011-01-11|title=Source Map Revision 3 Proposal|url=https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit|url-status=dead|archive-url=https://sourcemaps.info/spec.html|archive-date=2014-11-26|access-date=2016-04-16}}</ref> Version 2 and 3 of the format reduced the size of the map files considerably.<ref name=":0" />
 
Line 32 ⟶ 34:
 
===Tools===
[[Visual Studio Code]] comes with minification support for several languages. It can readily browse the Visual StuStudio Marketplace to download and install additional minifiers.
 
JavaScript optimizers can minify and generate source maps. In addition certain online tools can compress [[Cascading Style Sheets|CSS]] files.<ref>{{Cite web |last=Megida |first=Dillion |date=2022-05-18 |title=Minify CSS – CSS Minifying and Compression Explained |url=https://www.freecodecamp.org/news/minify-css-css-minifying-and-compression-explained/#howtominifycss |access-date=2024-03-29 |website=Free Code Camp |language=en}}</ref>
 
===Web development===
Line 44 ⟶ 48:
[[Category:Source code]]
[[Category:JavaScript]]
<references group="hkg" responsive="0" />