
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@e11ty/eleventy-plugin-html-terser
Advanced tools
Eleventy Plugin which will pass output through HTML Terser
An Eleventy plugin for post-processing generated sites through the powerful html-minifier-terser.
Because terser is dope and does dope shit.
The @11ty/eleventy module is a peer and needs to be installed along side it.
pnpm add @e11ty/eleventy-plugin-html-terser @11ty/eleventy -D
Pass to the addPlugin method of eleventyConfig within a .eleventy.js or .eleventy.cjs configuration file. You can provide terser options to the terserOption property, which will use the defaults listed below. The runModes[] option allows you to (optionally) control modes that minification applies (defaults to all run modes).
Optionally use with 11ty.ts wrapper for type completions.
const { defineConfig } = require('11ty.ts'); // Optional
const { terser } = require('@e11ty/eleventy-plugin-html-terser');
module.exports = defineConfig(eleventyConfig => {
eleventyConfig.addPlugin(terser, {
runModes: [], // Optionally specify the run modes for minification
terserOptions: {
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true,
removeComments: true,
removeRedundantAttributes: true
}
});
});
See the available minification options for terser.
FAQs
Eleventy Plugin which will pass output through HTML Terser
We found that @e11ty/eleventy-plugin-html-terser 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.