以对象形式
configureWebpack: { resolve: { alias: { '@assets': resolve('src/assets') } },
plugins:[]
},
以函数形式
configureWebpack: config => {//直接修改配置 config.resolve.alias['@asset'] = resolve('src/assets')
const _plugins = [];
config.plugins.push(
...
)
config.plugins = [...config.plugins, ..._plugins];
}