Make stream of HTML mobile-friendly
$ browserify index.js | indexhtmlify | html-inject-meta | html-inject-github-corner | mobilify > index.html
Or
var mobilify = require('mobilify')
fs.createReadStream('index.html')
.pipe(mobilify())
.pipe(fs.createWriteStream('output.html'))
It takes a stream of html and includes mobile meta tags, normalize.css
, polyfills typed arrays methods and Array.fill
.
© 2017 Dmitry Ivanov. MIT License.