August 2017
Beginner
298 pages
7h 4m
English
Source maps provide us with an easy way to debug our compiled code. Browsers don't load source maps until the development tool is opened. Hence, performance-wise source maps don't cause any harm. However, if you need the original source code to be protected, then removing source maps is a good idea. You can also use private source maps by setting sourceMappingURL at the end of each bundled file to a restricted URL that can be used only by a trusted source (for example, source maps can be accessed only by developers within the company's domain):
//# sourceMappingURL: http://protected.domain/dist/general.js.map
The complete Webpack configuration file with all the earlier mentioned optimizations will look as: https://goo.gl/UDuUBu ...
Read now
Unlock full access