Nuxt 3 Release Candidate is out! Discover more about it on

The extendPlugins Property

The extendPlugins property lets you customize Nuxt plugins. (options.plugins ).

  • Type: Function
  • Default: undefined

You may want to extend plugins or change plugins order created by Nuxt. This function accepts an array of plugin objects and should return array of plugin objects.

Example of changing plugins order:

export default {
  extendPlugins(plugins) {
    const pluginIndex = plugins.findIndex(
      plugin => (typeof plugin === 'string' ? plugin : plugin.src) === '~/plugins/shouldBeFirst.js'
    const shouldBeFirstPlugin = plugins[pluginIndex]

    plugins.splice(pluginIndex, 1)

    return plugins
Edit this page on GitHub Updated at Sat, Sep 24, 2022