1.0.5 • Published 5 years ago

simply-minify v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Simply-Minify

NPM version NPM Downloads

Simply-Minify is a simple minifier for the Node.js platform. Simply-Minify finds all CSS and JS files in the given folder and minifies them.

Dependencies:

NPM-PackageVersion
clean-cssNPM version
UglifyJS3NPM version

Install

npm i simply-minify -D

Use

const simplyMinify = require('simply-minify');
simplyMinify();

This will minify all files in the "dist" folder in the root directory of your app.

Arguments

The function simplyMinify takes 3 arguments:

argumentdata typedescriptiondefaultexample
dirstringdirectory to search for files"dist""src/js"
CleanCSS_Optionsobjectoptions for clean-css{}{level: 0}
UglifyJS_Optionsobjectoptions for UglifyJS3{}{mangle: false}

CLI mode

Make sure you have installed the npm-package globally: npm install simply-minify -g

You can use Simply-Minify straight from the command line with:

simplyMinify <path>

Options are not supported in CLI mode

License

Simply-Minify is released under the MIT License.

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago