Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.1 KB

File metadata and controls

35 lines (26 loc) · 1.1 KB

rollup-plugin-minify-lit-html

A Rollup plugin that minifies lit-html templates (minifies everything inside html...).

Usage

Configuration

Option Type Description Default
esprima Esprima config See esprima for more information. ..
htmlMinifier html-minifier config See html-minifier for more information. ..
include Pattern Minimatch pattern, or an array of minimatch patterns of files to include. [/\.js$/, /\.ts$/]
exclude Pattern Minimatch pattern, or an array of minimatch patterns of files to exclude. []
verbose Boolean Disables or enables logging output to the console. true

Example

import {minifyLitHTML} from "@appnest/web-config";

export default {
  entry: "src/index.js"
  output: {
    dest: "dist/index.js"
  },
  plugins: [
    minifyLitHTML()
  ]
};

🎉 License

Licensed under MIT.