Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ Extracts SourceMaps for source files that as added as `sourceMappingURL` comment

## Usage

[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
[Documentation: Using loaders](https://webpack.js.org/concepts/#loaders)


### example webpack config
### Example webpack config

``` javascript
module.exports = {
module: {
preLoaders: [
rules: [
{
test: /\.js$/,
loader: "source-map-loader"
loader: "source-map-loader",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be use: ["source-map-loader"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it can also simply be a string as well last time I checked.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure. I used this as the example so you might want to update that as well.

enforce: "pre"
}
]
}
Expand Down