I have been struggling for a whole day, after re-installing Node.js (18.16.0) Python 3.11.4
I have even edited the ´User´ Minify settings file replacing the line “cssminifier”: “clean-css” by “cssminifier”: “uglifycss” —this option throws me another error (ENOED)
This is on Mac Big Sur. On my Windows 10 laptop had similar but replacing with “uglifycss” solved
Any help will be appreaciated
Here I am copying the code of the User settings file
{
// #####################
// # IMPORTANT NOTE! #
// #####################
//
// Please do not modify this file! This file holds the default settings of Minify.
//
// If you wish to customize these settings then create a `Settings -- User` file first
// and make your customization there.
//
// If you edit this file, your custom settings will be overwritten at the next update of Minify!
// #####################
// # Global Settings #
// #####################
// Save the file before doing any action (minify or beautify)?
"save_first": true,
// Auto-minify files on save?
"auto_minify_on_save": false,
// Open resulting file (minified or beautified)?
"open_file": true,
// Only Minify specified file types (css, js, json, html, svg) when "auto_minify_on_save" is used
"allowed_file_types": [
"css",
"js",
"json",
"html",
"svg"
],
// ############################
// # CSS Processing Options #
// ############################
// you can specify which CSS minifier to use such as "clean-css", "uglifycss" or "yui"
// notes: the default is "clean-css"; you must have java installed for "yui"
"cssminifier": "clean-css",
// you may want to define the cleancss command with an absolute path
//"cleancss_command": "/usr/local/bin/cleancss",
// you can specify command line parameters for cleancss
"cleancss_options": "-O2 --skip-rebase",
// you may want to define the uglifycss command with an absolute path
//"uglifycss_command": "/usr/local/bin/uglifycss",
// you can specify command line parameters for uglifycss
// "uglifycss_options": "--max-line-len 250",
// you may want to define the js-beautify command with an absolute path
// "js-beautify_command": "/usr/local/bin/js-beautify",
// you can specify command line parameters for .css beautification
// "js-beautify_options": "--indent-size=2",
// if you need a CSS source map (supported by clean-css only) in the destination directory (same as original source), enable this option
//"css_source_map": true,
// ###################################
// # JavaScript Processing Options #
// ###################################
// you may want to define the uglifyjs command with an absolute path
// "uglifyjs_command": "/usr/local/bin/uglifyjs",
// you can specify command line parameters for uglifyjs (for .js minification)
// "uglifyjs_options": "",
// do you want to keep comments when minifying javascript files?
"keep_comments": false,
// you can also specify which comments to keep
// if you set `keep_comments` to true and leave `comments_to_keep` false then uglifyjs will only keep JSDoc-style copyright comments
// but if you set `keep_comments` to true then you can also specify which comments to keep: set `comments_to_keep` to "all" to keep
// all comments or you can provide a regexp such as "/!/" (this will keep only comments which contain an exclamation mark)
"comments_to_keep": false,
// you can specify command line parameters for uglifyjs (for .js beautification)
// "uglifyjs_pretty_options": "indent-level=2",
// if you need a source map in the destination directory (same as original source), enable this option
"source_map": false,
// change to true if you are using any transpiler such as Babel or Typescript that generate map files for original code
// map file must be present in the same directory
"js_map_content": false,
// #############################
// # HTML Processing Options #
// #############################
// you may want to define the html-minifier command with an absolute path
// "html-minifier_command": "/usr/local/bin/html-minifier",
// you can specify command line parameters for .html minification
"html-minifier_options": "--collapse-boolean-attributes --collapse-whitespace --html5 --minify-css --minify-js --preserve-line-breaks --process-conditional-comments --remove-comments --remove-empty-attributes --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --quote-character '",
// you can specify command line parameters for .html beautification
// "js-beautify_html_options": "--indent-size=2",
// #############################
// # JSON Processing Options #
// #############################
// you may want to define the minjson command with an absolute path
// "minjson_command": "/usr/local/bin/minjson",
// ############################
// # SVG Processing Options #
// ############################
// you may want to define the svgo command with an absolute path
// "svgo_command": "/usr/local/bin/svgo",
// you can specify command line parameters for .svg minification
// "svgo_min_options": "--multipass",
// you can specify command line parameters for .svg prettification
// "svgo_pretty_options": "--multipass"
// ###############
// # Debugging #
// ###############
// Enable debug mode?
"debug_mode": false
}