nuxtjs-platform
v1.0.2
Published
browser/platform detection module for Nuxt.js
Downloads
7
Readme
nuxtjs-platform
browser/platform detection using 'browser-platform'
Features
The module features
Setup
- Add
nuxtjs-platform
dependency using yarn or npm to your project - Add
nuxtjs-platform
tomodules
section ofnuxt.config.js
{
modules: [
// Usage
'nuxtjs-platform',
]
}
Usage
This uses https://www.npmjs.com/package/browser-platform and adds css classes to the <html>
The platform object is accessed with $root.$platform
Development
- Clone this repository
- Install dependnecies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Alexander Kushi-Willis [email protected]