Skip to content

Functional-Core/swc-minify-lits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swc-minify-lits

A plugin for SWC for minifying HTML and CSS template literals via lightningcss and minify-html.

Works with both tagged and untagged template literals.

Configuration Options

Name Description Default Value
minifyCss Should the plugin minify CSS literals? true
minifyHtml Should the plugin minify HTML literals? true
minifyCssInHtml Passed to minify-html to minify <style>... and style=... within HTML. false
minifyJsInHtml Passed to minify-html to minify <script>... within HTML. false
keepHtmlComments Keep comments in HTML? false

About

A plugin for SWC providing minification of HTML and CSS template literals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages