Skip to content

Simply-Minify is a simple minifier for CSS and JS files on the node.js platform.

License

Notifications You must be signed in to change notification settings

lukas-dachtler/simply-minify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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-Package Version
clean-css NPM version
UglifyJS3 NPM 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:

argument data type description default example
dir string directory to search for files "dist" "src/js"
CleanCSS_Options object options for clean-css {} {level: 0}
UglifyJS_Options object options 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.

About

Simply-Minify is a simple minifier for CSS and JS files on the node.js platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published