webpack/examples/source-map/template.md

1.2 KiB

This example demonstrates various types of source-maps.

example.coffee

{{example.coffee}}

webpack.config.js

{{webpack.config.js}}

Generated source-maps

source-map.js and source-map.js.map

{{js/bundle-source-map.js}}
{{js/bundle-source-map.js.map}}

hidden-source-map.js and hidden-source-map.js.map

{{js/bundle-hidden-source-map.js}}
{{js/bundle-hidden-source-map.js.map}}

inline-source-map.js

{{js/bundle-inline-source-map.js}}

nosources-source-map.js.map

{{js/bundle-nosources-source-map.js.map}}

eval-source-map.js

{{js/bundle-eval-source-map.js}}

eval.js

{{js/bundle-eval.js}}

cheap-eval-source-map.js

{{js/bundle-cheap-eval-source-map.js}}

cheap-module-eval-source-map.js

{{js/bundle-cheap-module-eval-source-map.js}}

cheap-module-source-map.js.map

{{js/bundle-cheap-module-source-map.js.map}}

cheap-source-map.js.map

{{js/bundle-cheap-source-map.js.map}}

webpack output

{{stdout}}