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

@mxssfd/bundle-cli

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mxssfd/bundle-cli

bundle compress js

  • 5.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bundle-cli

主要实现了在非构建环境下,无需配置,只通过命令对 js 或 ts 文件进行打包、babel 转译、压缩、混淆等功能

使用 rollup 打包压缩 js,如果入口是 typescript 文件,那么会自动开启 ts 打包。

命令

-input/-i                      文件入口
-output/-o                     输出文件
-module/-m                     模块类型
-help/-h                       帮助
-terser/-t                     压缩
-babel/-b                      开启babel
-libraryName/-name             打包后的名字,默认是时间戳
-uglify/-u                     开启uglify
-uglifyDropDebugger/-udd       移除debugger,需开启uglify
-uglifyDropConsole/-udc        移除console,需开启uglify
-eval/-e                       eval parker混淆模式

安装

npm i -g @mxssfd/bundle-cli

使用

bundle-cli inputPath outputPath

如果输出文件名不填,则为输入文件名.min.js 或

bundle-cli -input path -output path

压缩

bundle-cli inputPath outputPath -terser

babel

bundle-cli inputPath outputPath -babel

uglify

bundle-cli inputPath outputPath -uglify

去除 debugger

bundle-cli inputPath outputPath -udd

去除 console

bundle-cli inputPath outputPath -udd

eval

eval 混淆

bundle-cli inputPath outputPath -eval

Keywords

FAQs

Package last updated on 30 Mar 2022

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