A Rollup plugin that minifies lit-html templates (minifies everything inside html...
).
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 |
import {minifyLitHTML} from "@appnest/web-config";
export default {
entry: "src/index.js"
output: {
dest: "dist/index.js"
},
plugins: [
minifyLitHTML()
]
};
Licensed under MIT.