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

delete-sourcemap-webpack-plugin-stzhang

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delete-sourcemap-webpack-plugin-stzhang

delete source map url and files after uploaded to anywhere

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

delete-sourcemap-webpack-plugin-stzhang

sentry.iojavascript sdk配套使用。在向sentry.io上传source-map文件之后,再删除source-map文件与源文件内对source-map文件的引用注释指令。而不是,直接从webpack配置彻底关闭source-map生成。

安装

npm i -D delete-sourcemap-webpack-plugin-stzhang

使用

// webpack.config.js
const DeleteSourceMapWebpackPlugin = require('delete-sourcemap-webpack-plugin-stzhang')

module.exports = {
    // ...
    plugins: [
        new DeleteSourceMapWebpackPlugin()
    ],
    // ...
}

解决缺陷

支持去掉css文件的source-map

当遇到内联source-map时,不再报fs.unlink()的删除文件失败错误

调用webpack 4Plugin API来接入插件

Keywords

FAQs

Package last updated on 26 Jun 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