webpack/examples/source-map/template.md

90 lines
1.2 KiB
Markdown

This example demonstrates various types of source-maps.
# example.coffee
```coffeescript
_{{example.coffee}}_
```
# webpack.config.js
```javascript
_{{webpack.config.js}}_
```
# Generated source-maps
## source-map.js and source-map.js.map
```javascript
_{{dist/bundle-source-map.js}}_
```
```json
_{{dist/bundle-source-map.js.map}}_
```
## hidden-source-map.js and hidden-source-map.js.map
```javascript
_{{dist/bundle-hidden-source-map.js}}_
```
```json
_{{dist/bundle-hidden-source-map.js.map}}_
```
## inline-source-map.js
```javascript
_{{dist/bundle-inline-source-map.js}}_
```
## nosources-source-map.js.map
```json
_{{dist/bundle-nosources-source-map.js.map}}_
```
## eval-source-map.js
```javascript
_{{dist/bundle-eval-source-map.js}}_
```
## eval.js
```javascript
_{{dist/bundle-eval.js}}_
```
## eval-cheap-source-map.js
```javascript
_{{dist/bundle-eval-cheap-source-map.js}}_
```
## eval-cheap-module-source-map.js
```javascript
_{{dist/bundle-eval-cheap-module-source-map.js}}_
```
## cheap-module-source-map.js.map
```json
_{{dist/bundle-cheap-module-source-map.js.map}}_
```
## cheap-source-map.js.map
```json
_{{dist/bundle-cheap-source-map.js.map}}_
```
# webpack output
```
_{{stdout}}_
```