filmov
tv
Source Maps 101 + Webpack - Ep. 6
![preview_player](https://i.ytimg.com/vi/qWDwHRZfbDo/sddefault.jpg)
Показать описание
Source maps are an integral tool to accurately pinpointing bugs within our source code—the files we actually write code in.
Browsers typically read code from a distribution directory that contains bundled and minified files. This is fine until one realizes that the error message they're receiving in the console is for line 1 of a minified file. To fix this bug, you'd have to sift through the minified file, switch over to a source file, and then use a search command to find the issue from there. This is cumbersome, time consuming, and flat out annoying process—but luckily for us, source maps provide an easy to implement fix.
This video will teach you the basics as to what source maps are, why we'd want to use them, and how to implement them using webpack.
Git Repo so You Can Follow Along:
Timeline:
0:34 - Tutorial starts
0:40 - What is a source map?
1:09 - Illustration as to why we'd want to use source maps
2:35 - Implementing source maps for JS
2:58 - Source map devtool options
5:05 - Implementing source maps for CSS
Resources:
Beatz:
Immortal Beats - Oh Wee - Creative Commons
Support Chris Courses Through Patreon:
--------------------------------------
Chris Courses Social:
---------------------
Christopher Lis Social:
-----------------------
Комментарии