UNPKG

2.41 kBMarkdownView Raw
1[![npm][npm]][npm-url]
2[![deps][deps]][deps-url]
3[![chat][chat]][chat-url]
4
5<div align="center">
6 <!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
7 <a href="https://github.com/webpack/webpack">
8 <img width="200" height="200" vspace="" hspace="25"
9 src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg">
10 </a>
11 <h1>Sourcemap Loader</h1>
12 <p>Extracts SourceMaps for source files that as added as `sourceMappingURL` comment.<p>
13</div>
14
15<h2 align="center">Install</h2>
16
17```bash
18npm i -D source-map-loader
19```
20
21<h2 align="center">Usage</h2>
22
23[Documentation: Using loaders](https://webpack.js.org/concepts/#loaders)
24
25
26### Example webpack config
27
28``` javascript
29module.exports = {
30 module: {
31 rules: [
32 {
33 test: /\.js$/,
34 use: ["source-map-loader"],
35 enforce: "pre"
36 }
37 ]
38 }
39};
40```
41
42This extracts SourceMaps from all js files (including node_modules). This is not very performant, so you may want to only apply the loader to relevant files.
43
44<h2 align="center">Maintainers</h2>
45
46<table>
47 <tbody>
48 <tr>
49 <td align="center">
50 <img width="150" height="150"
51 src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150">
52 </br>
53 <a href="https://github.com/bebraw">Juho Vepsäläinen</a>
54 </td>
55 <td align="center">
56 <img width="150" height="150"
57 src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150">
58 </br>
59 <a href="https://github.com/d3viant0ne">Joshua Wiens</a>
60 </td>
61 <td align="center">
62 <img width="150" height="150"
63 src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150">
64 </br>
65 <a href="https://github.com/SpaceK33z">Kees Kluskens</a>
66 </td>
67 <td align="center">
68 <img width="150" height="150"
69 src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150">
70 </br>
71 <a href="https://github.com/TheLarkInn">Sean Larkin</a>
72 </td>
73 </tr>
74 <tbody>
75</table>
76
77
78[npm]: https://img.shields.io/npm/v/source-map-loader.svg
79[npm-url]: https://npmjs.com/package/source-map-loader
80
81[deps]: https://david-dm.org/webpack-contrib/source-map-loader.svg
82[deps-url]: https://david-dm.org/webpack-contrib/source-map-loader
83
84[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg
85[chat-url]: https://gitter.im/webpack/webpack