minify-web
v1.1.5
Published
Compress all html, js, and css files in the entire folder, and output other files to the specified directory without processing
Downloads
18
Readme
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
- Create the
package.json
file in the project root directory and add the following
{
// ...
"scripts": {
"minify": "minify-web"
}
// ...
}
- run
npm run minify
in the project root