postcss-mobile-vh
v0.0.10
Published
A PostCSS plugin to handle mobile vh issues.
Readme
postcss-mobile-vh
A PostCSS plugin to handle mobile vh issues.
Installation
bash
npm install postcss-mobile-vh
Usage
1. Add to PostCSS Configuration
Add the plugin to your postcss.config.js or equivalent PostCSS configuration file:
javascript
module.exports = { plugins: { 'postcss-mobile-vh': {} } }
2. Initialize in Your Application
Import and call the initialization function at the entry point of your project (e.g., main.js or main.ts):
javascript
import { createApp } from 'vue' import './style.css' import App from './App.vue' import { initVHFix } from 'postcss-mobile-vh/init'
initVHFix() createApp(App).mount('#app')
