sourcemap-sep-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

说明

主要用于生产环境,分离soucemap生成的.js.map 或者.css.map的文件。 支持webpack3、webpack4、webpack5

用法

npm i sourcemap-sep-plugin -D
const SourcemapSepPlugin = require("sourcemap-sep-plugin");
// targetDir(可选) 默认为map,为相对路径,相对于output.path
// run(可选) 默认为true  是否运行插件
// cssSourcemap(可选) 默认false 是否保留css的sourcemap文件
new SourcemapSepPlugin({targetDir:'map'})
或者
new SourcemapSepPlugin({targetDir:'../dz-wap'})

Readme

Keywords

Package Sidebar

Install

npm i sourcemap-sep-plugin

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.42 kB

Total Files

4

Last publish

Collaborators

  • zhangshuaisuit