You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
I created a NuxtGenerate ace command with the following code
class NuxtGenerate extends Command {
/**
* signature defines the requirements and name
* of command.
*
* @return {String}
*/
get signature () {
return 'nuxtGenerate';
}
/**
* description is the little helpful information displayed
* on the console.
*
* @return {String}
*/
get description () {
return 'Generate for production the nuxt.js application.';
}
/**
* handle method is invoked automatically by ace, once your
* command has been executed.
*
* @param {Object} args [description]
* @param {Object} options [description]
*/
* handle (args, options) {
const config = Config.get('nuxt');
config.dev = false;
config.mode = 'spa';
this.nuxt = new Nuxt(config);
const builder = new Builder(this.nuxt);
this.info('Generating nuxt.js application...');
yield new Generator(this.nuxt, builder).generate();
}
}
However, the generated code does not render the HTML from javascript.
Has anyone experienced using nuxt generate with adonuxt?
This question is available on Nuxt.js community (#c69)
The text was updated successfully, but these errors were encountered:
I created a NuxtGenerate ace command with the following code
However, the generated code does not render the HTML from javascript.
Has anyone experienced using nuxt generate with adonuxt?
The text was updated successfully, but these errors were encountered: