Russian Brides Anastasia

Essentially it is a solution to map a combined/minified file back again to an unbuilt state.

Декабрь 24, 2019

Have actually you ever discovered yourself wishing you might maintain your client-side rule readable and even more importantly debuggable even with you have combined and minified it, without impacting performance? Well you can now through the miracle of supply maps.

You generate a source map which holds information about your original files when you build for production, along with minifying and combining your JavaScript files. You can do a lookup in the source map which returns the original location when you query a certain line and column number in your generated JavaScript. Developer tools (presently WebKit nightly develops, Bing Chrome, or Firefox 23+) can parse the foundation map immediately and also make it appear as if you are running unminified and files that are uncombined.

The above mentioned demo enables you to right simply click any place in the textarea containing the source that is generated. Choose «Get initial location» will query the foundation map by moving when you look at the generated line and line quantity, and get back the career in the initial rule. Ensure that your system is available so the output can be seen by you.

Real life

Before you see the following real life implementation of supply Maps ensure you’ve enabled the foundation maps function in either Chrome Canary or WebKit nightly by pressing the settings cog into the dev tools panel and checking the «Enable supply maps» choice. (далее…)