Registry / devops / ease-task-minify-html

ease-task-minify-html

JSON →
library1.0.2jsnpmunverified

A plugin for the Ease task runner that minifies HTML files using html-minifier. Current stable version is 1.0.2 (released in 2016, no recent updates). It integrates with Ease's task system and supports standard html-minifier options plus custom dir, outDir, and cleanOutDir settings. Key differentiator: it is specific to the Ease task runner ecosystem, which has limited adoption. For modern projects, consider using html-minifier directly or alternative build tools. Release cadence: no activity since 2016, effectively in maintenance/semi-abandoned state.

npm install ease-task-minify-html
INSTALL
IMPORT
SIG · EASE-TASK-MINIFY-H
E
ease-task-minify-html
devopsjavascriptv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

minifyHtml
const minifyHtml = require('ease-task-minify-html');
import minifyHtml from 'ease-task-minify-html';
CommonJS only; no ESM exports. Use require() as shown.
install plugin
ease.install('minify-html', minifyHtml, config);
ease.task('minify-html', minifyHtml);
Must call ease.install() with a task name, the plugin function, and config object.
type imports
// No official TypeScript types. Use @types if needed.
Package does not ship TypeScript declarations.

Shows how to install and configure the html-minifier plugin in easeconfig.js, then define a job to run it.

const minifyHtml = require('ease-task-minify-html'); module.exports = function(ease) { ease.install('minify-html', minifyHtml, { dir: 'src', outDir: 'dist', collapseWhitespace: true, removeComments: true }); ease.job('minify-html-files', ['minify-html']); };
Debug
Known issues
deprecatedThis package has not been updated since 2016; html-minifier may have breaking changes or security vulnerabilities.
fix
Consider using html-minifier directly or migrating to a modern build tool like Webpack, Parcel, or Vite.
affects: >=1.0
gotchaThe `dir` and `outDir` paths are relative to easeconfig.js, not the current working directory.
fix
Use absolute paths or ensure relative paths are correct from the config file location.
affects: >=1.0
gotchaOnly CommonJS require() is supported; import statements will fail.
fix
Use const minifyHtml = require('ease-task-minify-html'); instead of ES import.
affects: >=1.0
gotchaThe plugin does not validate the config object; invalid html-minifier options may cause runtime errors.
fix
Refer to html-minifier documentation for valid options and test thoroughly.
affects: >=1.0
Errors
Common errors & fixes
Cannot find module 'ease-task-minify-html'
Package not installed or typo in package name.
fix
Run 'npm install ease-task-minify-html --save-dev' and check spelling.
TypeError: ease.install is not a function
The 'ease' object is not properly defined or the plugin is not called within a function that receives 'ease'.
fix
Ensure the function signature is 'module.exports = function(ease) { ... }'
Error: Cannot find module 'html-minifier'
html-minifier is a peer dependency and must be installed explicitly.
fix
Run 'npm install html-minifier --save-dev'
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
html-minifierrequiredCore minification engine used by this plugin.
easeoptionalRequired as peer dependency; the task runner this plugin extends.
Agent activity
2 hits · last 30 days
node
2
Resources
ease-task-minify-html — npm install ease-task-minify-html · libregistry