minify-web

1.1.1 • Public • Published

minify-web

Compress all html, js, and css files in the entire folder, and output other files to the specified directory without processing

Language

中文

Installation

npm install minify-web -g
# or
yarn global add minify-web

Usage

The src directory is compressed by default, and directory dist is entered

minify-web

Options

-D, --dir

Package directory

-O, --out

Output directory

-H, --help

Show help

Example

the src directory is compressed and placed in the dist directory

minify-web

the app directory is compressed and placed in the out directory

minify-web -D app -O out

Used in the project

  1. Create the package.json file in the project root directory and add the following
{
  // ...
  "scripts": {
    "minify": "minify-web"
  }
  // ...
}
  1. run npm run minify in the project root

Readme

Keywords

Package Sidebar

Install

npm i minify-web

Weekly Downloads

5

Version

1.1.1

License

MIT

Unpacked Size

7.22 kB

Total Files

5

Last publish

Collaborators

  • penghuteng