我的github
npm i -g debundle

简介:

$ debundle
Usage: debundle [input file] {OPTIONS}
 
Options:
   --input,  -i  Bundle to debundle
   --output, -o  Directory to debundle code into.
   --config, -c  Configuration file
 
$ curl https://raw.githubusercontent.com/1egoman/debundle/master/test_bundles/browserify/bundle.js > bundle.js
$ curl https://raw.githubusercontent.com/1egoman/debundle/master/test_bundles/browserify/debundle.config.json > debundle.config.json
$ cat debundle.config.json
{
  "type": "browserify",
  "knownPaths": {}
}
$ debundle -i bundle.js -o dist/ -c debundle.config.json
$ tree dist/
dist/
├── index.js
└── node_modules
    ├── number
    │   └── index.js
    └── uuid
        ├── index.js
        ├── lib
        │   ├── bytesToUuid.js
        │   └── rng.js
        ├── v1.js
        └── v4.js
4 directories, 7 files

https://www.npmjs.com/package/debundle

https://github.com/1egoman/debundle

https://github.com/1egoman/debundle/blob/master/DOCS.md

webpack 打包后的bundle分析:https://blog.csdn.net/qq_20567691/article/details/84326803

DevTools无法加载webpack:///node_modules//....js.map的SourceMap HTTP错误:状态码404,net :: ERR_UNKNOWN_URL_SCHEME:https://www.it1352.com/2106994.html

posted on 2021-11-13 17:26  XiaoNiuFeiTian  阅读(775)  评论(0编辑  收藏  举报