Registry / devops / ease-task-minify-js

ease-task-minify-js

JSON →
library2.0.0jsnpmunverified

A plugin for the Ease task runner that minifies JavaScript files using terser. Version 2.0.0 is current. It allows configuration of terser options plus custom dir, outDir, and cleanOutDir properties. Designed specifically for the Ease task runner ecosystem, not a standalone minifier.

npm install ease-task-minify-js
INSTALL
IMPORT
SIG · EASE-TASK-MINIFY-J
E
ease-task-minify-js
devopsjavascriptv2.0.0
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.

plugin
const minifyJs = require('ease-task-minify-js');
import minifyJs from 'ease-task-minify-js';
CommonJS only; plugin is used via require() in easeconfig.js.

Registers the minify-js task in easeconfig.js, configuring input/output directories and enabling source maps.

const minifyJs = require('ease-task-minify-js'); module.exports = ease => { ease.install('minify-js', minifyJs, { dir: 'js', outDir: 'dist/js', cleanOutDir: false, sourceMap: true }); ease.job('minify-js-files', ['minify-js']); };
Debug
Known issues
gotchaThe plugin does not expose a standalone API; it must be used within an Ease task runner configuration.
fix
Ensure you have an Ease task runner setup and use ease.install().
affects: >=2.0.0
gotchaOptions like dir and outDir are relative to the location of easeconfig.js, not the current working directory.
fix
Use absolute paths if needed, or ensure correct relative path from config file.
affects: >=2.0.0
deprecatedThe plugin relies on the deprecated Ease task runner, which may not be actively maintained.
fix
Consider migrating to a standalone minification tool like terser or esbuild.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'terser'
terser is a peer dependency not automatically installed.
fix
Run npm install terser --save-dev
TypeError: ease.install is not a function
easeconfig.js is not being run by the Ease CLI.
fix
Install Ease task runner and run the command via `ease <job-name>`.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
terserrequiredUnderlying minification engine.
Agent activity
2 hits · last 30 days
node
2
Resources
ease-task-minify-js — npm install ease-task-minify-js · libregistry