Socket
Book a DemoInstallSign in
Socket

compressfiles

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

compressfiles

A toolkit for compress files

1.0.45
latest
npmnpm
Version published
Weekly downloads
1
-96.15%
Maintainers
1
Weekly downloads
 
Created
Source

compressfiles

使用uglify-js 压缩指定目录中所有js文件,将结果输出到指定目录。

1)设置的忽略文件或者目录,不压缩且不拷贝;可以配置 --copy-files 拷贝忽略的文件

2)非js文件直接拷贝

Install

With npm do:

npm install compressfiles

Compress Directories

compressfiles src --out-dir dist

Ignore files

Ignore spec and test files

compressfiles src --out-dir dist --ignore spec.js,test.js

copy files

Copy files that will not be compressed

compressfiles src --out-dir dist --copy-files

License

MIT

Keywords

uglifyjs

FAQs

Package last updated on 17 Sep 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.