|
1 | 1 | # nuxt-font-loader-strategy |
2 | 2 |
|
| 3 | +[![Grabarz & Partner - Module][grabarz-partner-module-src]][grabarz-partner-href] |
| 4 | + |
3 | 5 | [![Build Status][travis-build-status-src]][travis-build-status-href] |
4 | 6 | [![npm version][npm-version-src]][npm-version-href] |
5 | 7 | [![npm downloads][npm-downloads-src]][npm-downloads-href] |
| 8 | +[![Renovate - Status][renovate-status-src]][renovate-status-href] |
6 | 9 | [![License][license-src]][license-href] |
7 | 10 |
|
8 | 11 | > Helps to load the fonts and activate them by preloading. |
@@ -38,6 +41,7 @@ yarn add nuxt-font-loader-strategy # or npm install nuxt-font-loader-strategy |
38 | 41 | modules: [ |
39 | 42 |
|
40 | 43 | ['nuxt-font-loader-strategy', { |
| 44 | + ignoreLighthouse: true, |
41 | 45 | ignoredEffectiveTypes: ['2g', 'slow-2g'], |
42 | 46 | fonts: [ |
43 | 47 | // Font |
@@ -99,7 +103,8 @@ yarn add nuxt-font-loader-strategy # or npm install nuxt-font-loader-strategy |
99 | 103 |
|
100 | 104 | | Property | Type | Description | Default | |
101 | 105 | | ----------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------- | |
102 | | -| `useWorker` | `Boolean` | If set, the non-preloads are loaded via WebWorker. | `false` | |
| 106 | +| `useWorker` | `Boolean` | If set, the non-preloads (prefetches) are loaded via WebWorker. | `false` | |
| 107 | +| `ignoreLighthouse` | `Boolean` | If set, the non-preloads (prefetches) in Lighthouse are disabled (ignored). | `false` | |
103 | 108 | | `classPattern` | `Boolean` | Font css class pattern. | `[family]_[weight]_[style]` | |
104 | 109 | | `importPathResolve` | `Function` | Path resolve for font `src: url(fontPath)` | Replace `@/` to `~` | |
105 | 110 | | `requirePathResolve` | `Function` | Path resolve for `require(fontPath)` | no changes | |
@@ -253,6 +258,12 @@ Connection speed dependent font loading, requires the support of `navigator.conn |
253 | 258 |
|
254 | 259 | <!-- Badges --> |
255 | 260 |
|
| 261 | +[grabarz-partner-module-src]: <https://img.shields.io/badge/Grabarz%20&%20Partner-Module-d19700> |
| 262 | +[grabarz-partner-href]: <https://grabarzundpartner.de> |
| 263 | + |
| 264 | +[renovate-status-src]: <https://img.shields.io/badge/renovate-enabled-brightgreen> |
| 265 | +[renovate-status-href]: <https://renovate.whitesourcesoftware.com/> |
| 266 | + |
256 | 267 | [travis-build-status-src]: <https://travis-ci.org/GrabarzUndPartner/nuxt-font-loader-strategy.svg?branch=master> |
257 | 268 | [travis-build-status-href]: <https://travis-ci.org/GrabarzUndPartner/nuxt-font-loader-strategy> |
258 | 269 |
|
|
0 commit comments