{"library":"metalsmith-css-packer","type":"library","category":null,"description":"Metalsmith plugin that bundles, minifies, and optimizes CSS from HTML files. It scans generated HTML for <link> and <style> tags, merges external and inline stylesheets by media query, and outputs either a single linked .min.css file per media type or inline <style> blocks. Version 0.5.0 wraps the csso minimizer. Use it when you need to process multiple CSS sources after HTML generation. Supports data-packer=\"exclude\" attribute to skip certain elements. The plugin expects HTML files already built by Metalsmith; it does not handle SASS/SCSS compilation natively.","language":"javascript","status":"active","version":"0.5.0","tags":["javascript","metalsmith","stylesheets","css","packer","minifier","optimizer"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install metalsmith-css-packer","imports":["const cssPacker = require('metalsmith-css-packer');","import cssPacker from 'metalsmith-css-packer';","import type { MetalsmithCSSPackerOptions } from 'metalsmith-css-packer';"]},{"cmd":"yarn add metalsmith-css-packer","imports":[]},{"cmd":"pnpm add metalsmith-css-packer","imports":[]}],"homepage":"https://github.com/stafyniaksacha/metalsmith-css-packer#readme","github":"https://github.com/stafyniaksacha/metalsmith-css-packer","docs":null,"changelog":null,"pypi":null,"npm":"metalsmith-css-packer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}