
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
node-minify-all
Advanced tools
Minifies CSS, JavaScripts and Images under the current directory tree.
Minifies CSS, JavaScripts and Images under the current directory tree with gulp task wrapper.
You can pass two command line arguments (both optional).
docroot
.false
.Four gulp tasks are defined.
$ gulp minify-css --rootpath myfolder
Minifies all the CSS files under the directory (files with .css extension).
$ gulp minify-js --backups true
Minifies all the JavaScript files under the directory (files with .js extension).
$ gulp minify-img --rootpath=myfolder --backups=true
Minifies all the image files under the directory (files with .jpg and .png extension).
$ gulp
Runs all the above three tasks, minifiying all images, CSS and JS files.
You can pass three command line arguments (all optional).
docroot
.css
, js
, img
, all
. Default all
.false
.$ node index --rootpath=myfolder --mode=css
Minifies all the CSS files under the directory (files with .css extension).
$ node index --rootpath myfolder --mode js --backups true
Minifies all the JavaScript files under the directory (files with .js extension).
$ node index --rootpath=myfolder --mode=img --backups=true
Minifies all the image files under the directory (files with .jpg and .png extension).
$ node index --rootpath myfolder --backups true
Runs all the above three tasks, minifiying all images, CSS and JS files.
Use the minify-all-api
for this.
var minify = require('node-minify-all/minify-all-api');
var opts = {
rootpath: 'myfolder',
mode: 'all',
backups: false
};
minify.process(opts);
MIT
FAQs
Minifies CSS, JavaScripts and Images under the current directory tree.
The npm package node-minify-all receives a total of 19 weekly downloads. As such, node-minify-all popularity was classified as not popular.
We found that node-minify-all demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.