Installations
npm install @rbarilani/remove-source-map-url-webpack-plugin
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.16.3
NPM Version
6.14.8
Score
56.6
Supply Chain
57.4
Quality
74.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
rbarilani
Download Statistics
Total Downloads
1,220,582
Last Day
7
Last Week
585
Last Month
2,048
Last Year
313,568
GitHub Statistics
MIT License
11 Stars
33 Commits
4 Forks
2 Watchers
17 Branches
2 Contributors
Updated on Aug 10, 2022
Bundle Size
3.22 MB
Minified
799.67 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.0
Package Id
@rbarilani/remove-source-map-url-webpack-plugin@1.1.0
Unpacked Size
7.74 kB
Size
3.17 kB
File Count
5
NPM Version
6.14.8
Node Version
12.16.3
Total Downloads
Cumulative downloads
Total Downloads
1,220,582
Last Day
-58.8%
7
Compared to previous day
Last Week
-5%
585
Compared to previous week
Last Month
41%
2,048
Compared to previous month
Last Year
10.9%
313,568
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Remove Source Map Url 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).
Install
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
1$ npm install @rbarilani/remove-source-map-url-webpack-plugin@0.x --save-dev
Webpack 5
For webpack 5 install the latest version
1$ npm install @rbarilani/remove-source-map-url-webpack-plugin@latest --save-dev
Usage
1var RemoveSourceMapUrlWebpackPlugin = require('@rbarilani/remove-source-map-url-webpack-plugin'); 2var webpackConfig = { 3 entry: 'index.js', 4 output: { 5 path: 'dist', 6 filename: 'index_bundle.js' 7 }, 8 plugins: [ 9 new RemoveSourceMapUrlWebpackPlugin({ 10 test: /index_bundle\.js$/ 11 }) 12 ] 13};
Options
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 returntrue
to include the asset orfalse
to exclude it
Contributing
You're are welcome to contribute to this project by submitting issues and/or pull requests.
Development
NPM scripts
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.io
License
This project is licensed under MIT.

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 29 are checked with a SAST tool
Reason
31 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
2
/10
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More