5d68baf2 by renchao@pashanhoo.com

style:打包

2 parents 296c9903 ce1d1eda
<!--
* @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"
......
......@@ -6,7 +6,6 @@ function resolve (dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title
const port = process.env.port || process.env.npm_config_port || 8888 // dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/
......@@ -60,8 +59,13 @@ module.exports = {
},
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack: {
name: name,
entry: './src/main.js',
optimization: {
usedExports: true,
minimize: true
},
entry: {
app: './src/main.js'
},
resolve: {
alias: {
'@': resolve('src')
......@@ -72,7 +76,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',
......