diff --git a/.eslintignore b/.eslintignore index 4deb596..080401d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ -/dist +/enterprise /public /vue.config.js /babel.config.js +/*.js diff --git a/package.json b/package.json index 45300f6..0eb8f85 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dependencies": { "ant-design-vue": "^1.7.6", "axios": "^0.21.1", - "compression-webpack-plugin": "^8.0.1", + "compression-webpack-plugin": "5.0.1", "core-js": "^3.6.5", "dayjs": "^1.10.6", "enquire.js": "^2.1.6", diff --git a/public/development_address_config.js b/public/development_address_config.js new file mode 100644 index 0000000..0d66ffc --- /dev/null +++ b/public/development_address_config.js @@ -0,0 +1,14 @@ +/** + * 防止打包部署时路径被写死-开发环境的配置项 + */ +window._CONFIG = {}; +window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer +// websocket连接的地址 +window._CONFIG["domianWebSocketURL"] = "http://localhost:21824/jero-boot"; +// 单点登录地址 +window._CONFIG["staticDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/download"; +window._CONFIG["pdfDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/pdf/pdfPreviewIframe"; +window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas"; +// 预览文件地址 +window._CONFIG["onlinePreviewDomainURL"] = "http://localhost:8012/onlinePreview"; + diff --git a/public/index.html b/public/index.html index 03ee5ff..a506b0c 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,13 @@ <%= htmlWebpackPlugin.options.title %> - + + <% if (process.env.NODE_ENV === 'development' ) { %> + + <% } %> + <% if (process.env.NODE_ENV === 'production' ) { %> + + <% } %>