How to use the @nuxt/config.getNuxtConfig function in @nuxt/config

To help you get started, we’ve selected a few @nuxt/config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nuxt / nuxt.js / packages / core / src / nuxt.js View on Github external
constructor (options = {}) {
    super(consola)

    // Assign options and apply defaults
    this.options = getNuxtConfig(options)

    // Create instance of core components
    this.resolver = new Resolver(this)
    this.moduleContainer = new ModuleContainer(this)

    // Deprecated hooks
    this.deprecateHooks({
      'render:context': 'render:routeContext',
      'render:routeContext': 'vue-renderer:afterRender',
      showReady: 'webpack:done' // Workaround to deprecate showReady
    })

    // Add Legacy aliases
    defineAlias(this, this.resolver, ['resolveAlias', 'resolvePath'])
    this.showReady = () => { this.callHook('webpack:done') }

@nuxt/config

MIT
Latest version published 4 months ago

Package Health Score

91 / 100
Full package analysis

Similar packages