// vue.config.js
module.exports = {
chainWebpack: config => {
if(config.plugins.has('extract-css')) {
const extractCSSPlugin = config.plugin('extract-css')
extractCSSPlugin && extractCSSPlugin.tap(() => [{
filename: '[name].css',
chunkFilename: '[name].css'
}])
}
// config.optimization.delete('splitChunks')
},
configureWebpack: {
output: {
filename: '[name].js',
chunkFilename: '[name].js'
}
}
}