A Webpack plugin that minifies EJS template files using html-minifier-terser, offering customizable minification options. Current stable version is 1.0.2 with no frequent releases. Its key differentiator is focusing specifically on EJS file minification within the Webpack pipeline, leveraging the popular html-minifier-terser library. Alternative solutions often require manual setup or separate tools.
npm install webpack-plugin-ejs-minificationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage with CommonJS require and Webpack plugin configuration.
Use require() instead of import.
Verify directory exists and contains .ejs files.
Check html-minifier-terser documentation for valid options.
Use const MinifyEJSContent = require('webpack-plugin-ejs-minification'); and ensure package is installed.Run npm install html-minifier-terser --save-dev.