ce1d1eda by renchao@pashanhoo.com

style:配置修改

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