0.11.0 • Published 6 years ago
posthtml-browser v0.11.0
posthtml-browser
PostHTML for browser side. You can bundle it with webpack or other bundlers for browser.
Install
$ npm install posthtml-browser --save
Usage
import posthtml from 'posthtml'
const html = `
<component>
<title>Super Title</title>
<text>Awesome Text</text>
</component>
`
const result = posthtml()
.use(require('posthtml-custom-elements')())
.process(html, { sync: true })
.html
console.log(result)