delete-sourcemap-plugin
v1.0.5
Published
delete sourcemap plugin for webpack
Downloads
6
Maintainers
Readme
delete sourcemap webpack plugin
介绍
这是一个webpack插件,构建完成后会自动删除sourcemap文件。可用于接入sentry上传sourcemap后需要删除sourcemap文件类似场景。
安装依赖
使用 npm:
npm install delete-sourcemap-plugin -D
使用yarn:
yarn install delete-sourcemap-plugin -D
webpack配置
const DeleteSourceMapPlugin = require("delete-sourcemap-plugin");
module.exports = {
devtool: 'hidden-source-map' //配置devtool类型 hidden-source-map,
plugins: [new DeleteSourceMapPlugin()]
}