5d68baf2 by renchao@pashanhoo.com

style:打包

2 parents 296c9903 ce1d1eda
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"
......
...@@ -6,7 +6,6 @@ function resolve (dir) { ...@@ -6,7 +6,6 @@ function resolve (dir) {
6 return path.join(__dirname, dir) 6 return path.join(__dirname, dir)
7 } 7 }
8 8
9 const name = defaultSettings.title
10 const port = process.env.port || process.env.npm_config_port || 8888 // dev port 9 const port = process.env.port || process.env.npm_config_port || 8888 // dev port
11 10
12 // All configuration item explanations can be find in https://cli.vuejs.org/config/ 11 // All configuration item explanations can be find in https://cli.vuejs.org/config/
...@@ -60,8 +59,13 @@ module.exports = { ...@@ -60,8 +59,13 @@ module.exports = {
60 }, 59 },
61 // configureWebpack通过操作对象的形式,来修改默认的webpack配置 60 // configureWebpack通过操作对象的形式,来修改默认的webpack配置
62 configureWebpack: { 61 configureWebpack: {
63 name: name, 62 optimization: {
64 entry: './src/main.js', 63 usedExports: true,
64 minimize: true
65 },
66 entry: {
67 app: './src/main.js'
68 },
65 resolve: { 69 resolve: {
66 alias: { 70 alias: {
67 '@': resolve('src') 71 '@': resolve('src')
...@@ -72,7 +76,6 @@ module.exports = { ...@@ -72,7 +76,6 @@ module.exports = {
72 // chainWebpack通过链式编程的形式,来修改默认的webpack配置 76 // chainWebpack通过链式编程的形式,来修改默认的webpack配置
73 chainWebpack (config) { 77 chainWebpack (config) {
74 // it can improve the speed of the first screen, it is recommended to turn on preload 78 // it can improve the speed of the first screen, it is recommended to turn on preload
75 // it can improve the speed of the first screen, it is recommended to turn on preload
76 config.plugin('preload').tap(() => [ 79 config.plugin('preload').tap(() => [
77 { 80 {
78 rel: 'preload', 81 rel: 'preload',
......