enable-mobile

Enable mobile metas for app, demo or tests


Keywords
mobile, test
License
MIT
Install
npm install enable-mobile@1.0.7

Documentation

enable-mobile stable

Include that script to enhance mobile view of the page. It is mostly collection of boilerplate code I used across various components demos, so here is all of it, to reuse hassle-free.

npm install enable-mobile

require('enable-mobile');

That will insert the following code:

<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0"/>
<style>/** normalize.css here **/</style>

Useful for tests, apps, demo.

Ideas for enhancements are welcomed.