Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rbarilani/remove-source-map-url-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbarilani/remove-source-map-url-webpack-plugin

Remove source map url comments webpack plugin

  • 1.0.0-alpha
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
551
increased by18.75%
Maintainers
1
Weekly downloads
 
Created
Source

Remove Source Map Url Webpack Plugin

npm Build Status dependencies Status devDependencies Status

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

Install the plugin via npm, you need to pick the right version based on the webpack version used in your project.

Webpack 4

With webpack 4 install 0.x version of the plugin.

$ npm install @rbarilani/remove-source-map-url-webpack-plugin@0.x --save-dev

Webpack 5

With webpack 5 install next version of the plugin.

$ npm install @rbarilani/remove-source-map-url-webpack-plugin@next --save-dev

Usage

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$/
    })
  ]
};

Configuration

  • 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)

Contributing

You're free to contribute to this project by submitting issues and/or pull requests.

Development

NPM scripts

  • npm test - run test suite
  • npm run test:coverage - run test suite and generate coverage reports
  • npm run test:build - build the test mock project with webpack-cli
  • npm run format - format code following project conventions

License

This project is licensed under MIT.

Keywords

FAQs

Package last updated on 24 Oct 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc