nuxt-viewport
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -85,3 +85,8 @@ import { Module } from '@nuxt/types'; | ||
} | ||
declare module '@nuxt/types/config/index' { | ||
interface NuxtOptions { | ||
viewport: ViewportOptions; | ||
} | ||
} | ||
export default nuxtModule; |
@@ -27,3 +27,3 @@ 'use strict'; | ||
...DEFAULT_OPTIONS, | ||
...customOptions | ||
...customOptions || this.options.viewport || {} | ||
}; | ||
@@ -30,0 +30,0 @@ this.addPlugin({ |
{ | ||
"name": "nuxt-viewport", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Define custom viewports for your Nuxt project", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -137,2 +137,15 @@ # nuxt-viewport | ||
## Typescript | ||
If using typescript or running typescript language server to check the code (for example through Vetur), add types to `types` array in your `tsconfig.json`: | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"types": [ | ||
"@nuxt/types", | ||
"nuxt-viewport", | ||
] | ||
} | ||
} | ||
``` | ||
## API | ||
@@ -154,3 +167,3 @@ | ||
[![Edit nuxt-viewport](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mvrlin/nuxt-viewport/tree/master/?fontsize=14&hidenavigation=1&theme=dark) | ||
[![Edit nuxt-viewport](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mvrlin/nuxt-viewport/tree/main/?fontsize=14&hidenavigation=1&theme=dark) | ||
@@ -157,0 +170,0 @@ Or locally: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15090
8
304
195