ce1d1eda by renchao@pashanhoo.com

style:配置修改

1 parent 0bd4bc30
<!--
* @Description: 选择不动产单元号
* @Autor: renchao
* @LastEditTime: 2023-05-18 10:59:48
* @LastEditTime: 2023-05-18 10:59:48[文件:bdcdj-index.html]
-->
<template>
<component :is="router" :sqywInfo="formData.sqywInfo" :isJump="formData.isJump ? formData.isJump : false"
......
......@@ -61,6 +61,10 @@ module.exports = {
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack: {
name: name,
optimization: {
usedExports: true,
minimize: true
},
entry: {
app: './src/main.js'
},
......@@ -74,7 +78,6 @@ module.exports = {
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
chainWebpack (config) {
// it can improve the speed of the first screen, it is recommended to turn on preload
// it can improve the speed of the first screen, it is recommended to turn on preload
config.plugin('preload').tap(() => [
{
rel: 'preload',
......@@ -84,7 +87,7 @@ module.exports = {
include: 'initial'
}
])
config.plugins.delete('prefetch')
// when there are many pages, it will cause too many meaningscss requests
config.module
.rule('svg')
......