This is a webpack plugin that removes # sourceMappingURL
after compilation.
It's a quick fix for wrong # sourceMappingURL
comments left in vendor source code when compiling without minification (causing 404 responses from the server).
Maintainer: Ruben Barilani
Install the plugin via npm:
$ npm install @rbarilani/remove-source-map-url-webpack-plugin --save-dev
var RemoveSourceMapUrlWebpackPlugin = require('@rbarilani/remove-source-map-url-webpack-plugin');
var webpackConfig = {
entry: 'index.js',
output: {
path: 'dist',
filename: 'index_bundle.js'
},
plugins: [
new RemoveSourceMapUrlWebpackPlugin({
test: /index_bundle\.js$/
})
]
};
test
: A condition that must be met. A condition may be a RegExp (tested against absolute asset key), a string containing the key, a function(key): bool.
(default:/\.js($|\?)/i
)
You're free to contribute to this project by submitting issues and/or pull requests.
This project is licensed under MIT.