Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • 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