
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@rbarilani/remove-source-map-url-webpack-plugin
Advanced tools
Remove source map url comments webpack plugin
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).
You can install the plugin via npm or yarn, pick the right version based on the webpack version used in your project.
Webpack 4
For webpack 4 install the 0.x version
$ npm install @rbarilani/remove-source-map-url-webpack-plugin@0.x --save-dev
Webpack 5
For webpack 5 install the latest version
$ npm install @rbarilani/remove-source-map-url-webpack-plugin@latest --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 to include or exclude the assets that should be processed (default: /\.js($|\?)/i). The allowed types for a condition are:
String - A string for exact matching with the file name of the assetRegExp - A regular expression which will be tested against the file name of the assetFunction(fileName:string):bool - A function that will be invoked with the file name of the asset as the argument and must return true to include the asset or false to exclude itYou're are welcome to contribute to this project by submitting issues and/or pull requests.
npm test - run test suitenpm run test:coverage - run test suite and generate coverage reportsnpm run test:build - build the test mock project with webpack-clinpm run lint - lint the code base with eslintnpm run lint:fix - try to fix as many linting issues as possible (the command will also format the code)npm run format - format code following project conventionsnpm run coveralls - send coverage report to https://coveralls.ioThis project is licensed under MIT.
FAQs
Remove source map url comments webpack plugin
The npm package @rbarilani/remove-source-map-url-webpack-plugin receives a total of 846 weekly downloads. As such, @rbarilani/remove-source-map-url-webpack-plugin popularity was classified as not popular.
We found that @rbarilani/remove-source-map-url-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.