Skip to content

Scan your entire site with Google Lighthouse in 2 minutes (on average). Open source, fully configurable with minimal setup.

License

Notifications You must be signed in to change notification settings

harlan-zw/unlighthouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

65c1ba0 · Dec 7, 2021

History

30 Commits
Dec 7, 2021
Dec 7, 2021
Dec 7, 2021
Dec 7, 2021
Dec 7, 2021
Nov 16, 2021
Dec 7, 2021
Oct 31, 2021
Dec 1, 2021
Dec 1, 2021
Dec 7, 2021
Dec 7, 2021
Dec 1, 2021
Dec 7, 2021
Oct 31, 2021
Dec 7, 2021

Repository files navigation

unlighthouse

NPM version

Starter template for unplugin.

Install

npm i unlighthouse
Vite
// vite.config.ts
import Starter from 'unlighthouse/vite'

export default defineConfig({
  plugins: [
    Starter({ /* options */ }),
  ],
})

Example: playground/


Rollup
// rollup.config.js
import Starter from 'unlighthouse/rollup'

export default {
  plugins: [
    Starter({ /* options */ }),
  ],
}


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unlighthouse/webpack')({ /* options */ })
  ]
}


Nuxt
// nuxt.config.js
export default {
  buildModules: [
    ['unlighthouse/nuxt', { /* options */ }],
  ],
}

This module works for both Nuxt 2 and Nuxt Vite


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('unlighthouse/webpack')({ /* options */ }),
    ],
  },
}