Created
December 25, 2019 00:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** 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