Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created December 25, 2019 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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