@jroxendal If you want to have a chance doing some stuff before nuxt build, you may use modules.
There is no official documentation yet, but you may browse modules repo to get idea how they basically work.
modules/test.js
module.exports = function myModule(moduleOptions) {
// You can access and modifiy options (nuxt.config.js) using this.options
// You can even access nuxt instance using this.nuxt
// If you want to do async things here, simply return a promise
// or use second callback argument of function
}
nuxt.config.js
modules : [
'~/modules/test.js'
]
Hi @jroxendal
You can use node 8 to use async/await in your nuxt.config.js file.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hi @jroxendal
You can use node 8 to use async/await in your nuxt.config.js file.