supront
v0.1.2
Published
Supront is a html tool for production
Downloads
14
Readme
supront-js
Supront is html tool for production which is super fast!
$ npm install --save-dev supront
const supront = require('supront');
const code = `
<div>Hello, World!</div>
<link href="style.css" rel="stylesheet" />
<script src="index.js"></script>
`;
bundle html, css, js
use esbuild to bundle javascript
const dist = supront.bundle(code);
minify html
const dist = supront.minify(code);
parsing html
const tree = supront.parse(code);