3.3.1 • Published 1 year ago
@hoast/process-postprocess v3.3.1
@hoast/process-postprocess
Process CSS, HTML, and JS data using PostCSS, Unified's rehype, and Babel plugins and minify using CleanCSS, Unified's rehype, and Terser.
Install
npm install @hoast/process-postprocessOptions
{String} property = 'contents'Dot notation path to the data property which should be used processed by Mithril.{String} mode = 'html'Whether to process the data as eithercss,cjs,html, orjs,mjs,ts. Set to either of those options. Thecjs,mjs, andtsmodes do not process the data differently and only influence how the dependencies are read when watching for changes.{Boolean} minify = trueWhether to minify.{Array} documentPlugins = []unified rehypeplugins.{String} scriptProcessor = 'babel'What processor to use for the javascript, if bundling is needed use the value'rollup'. The babel and terser configurations are still used.{Object} scriptMinifyOptions = {}terseroptions. Set tofalseto disable JS minification.{Object} scriptOptions = {}babeloptions.{Object} styleMinifyOptions = {}cssnanooptions. Set tofalseto disable CSS minification.{Object} styleOptions = {}postcssoptions.{Array} stylePlugins = []postcssplugins.{Function} filter = nullCustom filter function. The item data is given as the parameter. Returntrueif it should be processed, returnfalseif this processor should be skipped.{Number} logLevel = 2Log level given to the logger.