This NodeJs package was created for fun & to learn a little more about the npm/nodejs package management process.
The purpose of the package is to minify css files, though it is rudimentary, it is helpful enough and gets a result that is close enough to suffice in a crunch.
min-css is a simple structure. Primary functionality can be found in the root index.js file.
As of now, this package is not hosted via npm.org. The github repo can be directly referenced when installing. Please find the install script below.
npm i --save-dev https://github.com/tommypk17/min-css
To get started, after installation, the postinstall process should have setup a new script in the parent package.json file. This is primarily for ease of use and to reduce complex commands. While inside the root of the project that needs css file minification, run the code below. This will create a brand new file with the same location and name, but with a .min.css extension.
npm run min-css -- --path=./path/to/file.css