你可以通过 nuxt.config.js 文件中的 extend 配置项来扩展 Webpack 的配置:
nuxt.config.js
extend
module.exports = { build: { extend (config, { isDev, isClient }) { // ... } } }