2013-04-21 9 views
13

quando ho scaricato il jquery.mobile-1.3.1 dist vedo la seguente struttura:qual è lo scopo di jquery.mobile-1.3.1.min.map nella distribuzione jquery.mobile-1.3.1?

demos -> directory for demos of jquery-mobile 
images -> directory of images 
index.html -> index for demos 
jquery.mobile-1.3.1.css -> Uncompressed with Default theme 
jquery.mobile-1.3.1.js -> Uncompressed 
jquery.mobile-1.3.1.min.css -> Minified with Default theme 
jquery.mobile-1.3.1.min.js -> Minified 
jquery.mobile-1.3.1.min.map -> ?? (what it is for? is it necessary for min version?) 
jquery.mobile.structure-1.3.1.css -> Uncompressed structure without a theme 
jquery.mobile.structure-1.3.1.min.css -> Minified structure without a theme 
jquery.mobile.theme-1.3.1.css -> Uncompressed theme for structure without theme (can be changed by another theme) 
jquery.mobile.theme-1.3.1.min.css -> Minified theme for structure without theme (can be changed by another theme) 

Come si può vedere non so lo scopo di jquery.mobile-1.3.1.min.map, cosa è per? è necessario per la versione min?

risposta

19

Questa è una mappa di origine. Vengono utilizzati durante il debug di file JavaScript minificati. Poiché è solo a scopo di debug, non è richiesto.

Consiglio di leggere Introduction to JavaScript Source Maps.

+0

grazie amico! Non ho sentito parlare delle mappe di origine, ma il tuo link è molto esplicito – user1546652