@zeesuu-v3/viewport-flexible
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

viewport-flexible

Use viewport for mobile page compatibility

Usage

// in main.ts

import setViewport from "@zeesuu-v3/viewport-flexible";

setViewport({
	// Pass any number greater than 0 will create a meta tag in the head element
	// optional default: 0
  width: 750,
	// Display scale value in the console or not.
	// optional default: false
  debug: import.meta.env.MODE === "development",
});

// ReactDOM.render
// or createApp

Readme

Keywords

none

Package Sidebar

Install

npm i @zeesuu-v3/viewport-flexible

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.05 kB

Total Files

7

Last publish

Collaborators

  • zeesuu