htmlts-loader

0.1.2 • Public • Published

ES6 template strings HTML minifier for webpack

Version npm

htmlts-loader minify HTML string using minimize, designed to preprocess ES6 template string wrapped with `html\n and \n`.

This idea is inspired by github markdown syntax highlighting language identifier.

Minify this:

const x = `html
<div class="app">
  <a>${link}</a>
</div>
`

to this:

const x = `<div class=app><a>${link}</a></div>`

Readme

Keywords

none

Package Sidebar

Install

npm i htmlts-loader

Weekly Downloads

1

Version

0.1.2

License

ISC

Last publish

Collaborators

  • tatjsn