Map Preprocessed Code to Supply Code For You Personally

Map Preprocessed Code to Supply Code For You Personally

Maintain your client-side rule readable and debuggable even with you have combined, minified or put together it. Utilize supply maps to map your source rule to your put together rule.

  • Utilize supply Maps to map code that is minified supply rule. Then you’re able to read and debug put together rule with its initial supply.
  • Only utilize preprocessors with the capacity of creating supply Maps.
  • Verify that your particular internet host can provide supply Maps

Get started doing preprocessors

This informative article describes how exactly to connect with JavaScript supply Maps within the DevTools Sources Panel. For a very first summary of exactly what preprocessors are, how they may assist and exactly how supply Maps work, mind up to setup CSS & JS Preprocessors.

Make use of a supported preprocessor

You should utilize a minifier that is effective at creating source maps. For the most popular choices, see our preprocessor help part. For the extensive view, begin to see the supply maps: languages, tools as well as other info wiki page.

The next types of preprocessors are generally found in combination with supply Maps:

Source Maps in DevTools Sources panel

Source Maps from preprocessors cause DevTools to load your original files as well as your minified ones. After this you make use of the originals to create breakpoints and move through rule. Meanwhile, Chrome is clearly operating your minified rule. Thus giving you the impression of owning a development web site in manufacturing.

Whenever source that is running in DevTools, you are going to observe that the JavaScript is not compiled and you may see most of the specific JavaScript files it references. […]