webpack/examples/source-map/template.md

90 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

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}}_
```
2020-03-13 00:51:26 +08:00
```json
_{{dist/bundle-source-map.js.map}}_
```
## hidden-source-map.js and hidden-source-map.js.map
```javascript
_{{dist/bundle-hidden-source-map.js}}_
```
2020-03-13 00:51:26 +08:00
```json
_{{dist/bundle-hidden-source-map.js.map}}_
```
## inline-source-map.js
```javascript
_{{dist/bundle-inline-source-map.js}}_
```
## nosources-source-map.js.map
2020-03-13 00:51:26 +08:00
```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}}_
```
2019-10-18 21:10:26 +08:00
## eval-cheap-source-map.js
```javascript
2019-10-18 21:10:26 +08:00
_{{dist/bundle-eval-cheap-source-map.js}}_
```
2019-10-18 21:10:26 +08:00
## eval-cheap-module-source-map.js
```javascript
2019-10-18 21:10:26 +08:00
_{{dist/bundle-eval-cheap-module-source-map.js}}_
```
## cheap-module-source-map.js.map
2020-03-13 00:51:26 +08:00
```json
_{{dist/bundle-cheap-module-source-map.js.map}}_
```
## cheap-source-map.js.map
2020-03-13 00:51:26 +08:00
```json
_{{dist/bundle-cheap-source-map.js.map}}_
```
# webpack output
```
_{{stdout}}_
```