Skip to content

thechriswalker/source-maps-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

source maps loader for webpack

Forked from arielschiavoni/source-map-loader who forked from webpack/source-map-loader. I did this purely to publish under a different name (source-maps-loader vs source-map-loader so I could easily use the fixed functionality.

No credit for actual code should be given to me, but the original authors.

I simply removed the babel stuff so this is node 6.x compatible without any transpilation needed.

Extracts SourceMaps for source files that as added as sourceMappingURL comment.

Usage

Documentation: Using loaders

example webpack config

module.exports = {
  module: {
    preLoaders: [
      {
        test: /\.js$/,
        loader: "source-maps-loader"
      }
    ]
  }
};

This extracts all SourceMaps from all files. That's not so good performance-wise so you may only want to apply the loader to relevant files.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

extract sourceMappingURL comments from modules and offer it to webpack

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%