delete-sourcemap-webpack-plugin-stzhang
v1.0.2
Published
delete source map url and files after uploaded to anywhere
Downloads
52
Readme
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()
],
// ...
}