此配置基于 Nuxt2.x 版本 const TerserPlugin = require('terser-webpack-plugin'); module.exports = { mode: