Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created December 25, 2019 00:47
Show Gist options
  • Save bcnzer/5f4761d862ffb1088681bdb1bf3fae44 to your computer and use it in GitHub Desktop.
Save bcnzer/5f4761d862ffb1088681bdb1bf3fae44 to your computer and use it in GitHub Desktop.
Partial nuxt.config.js file showing the extend method you need to add
/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {
if (ctx.isDev) {
config.devtool = ctx.isClient ? 'source-map' : 'inline-source-map'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment