How to use @nuxt/core - 1 common examples

To help you get started, we’ve selected a few @nuxt/core 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 CKGrafico / Frontend-Boilerplates / test / scripts / collect-webpack-configs.js View on Github external
return new Promise((resolve) => {
    const nuxt = new Nuxt(config);
    nuxt.options.dev = true;
    nuxt.options.build.quiet = true;

    let stopProcessWhenDone = stopProcessIfCalledTimes(1, resolve);

    nuxt.hook('build:before', (nuxt, buildOptions) => {
      if (buildOptions.ssr) {
        stopProcessWhenDone = stopProcessIfCalledTimes(2, resolve);
      }
    });

    nuxt.hook('build:compile', ({ name, compiler }) => {
      stopProcessWhenDone({ name, compiler });
    });

@nuxt/core

MIT
Latest version published 4 months ago

Package Health Score

82 / 100
Full package analysis

Popular @nuxt/core functions

Similar packages