解决production环境的前端打包问题

pull/1/head v1.0.1
liuwx_gitee 1 year ago
parent c11c451796
commit 13ef76db76

@ -1,3 +1,3 @@
NODE_ENV=development
NODE_ENV=docker
VUE_APP_PLATFORM_NAME=科亿知识库
VUE_APP_SSO=false

@ -1,4 +1,4 @@
NODE_ENV=test
VUE_APP_API_BASE_URL=http://localhost:8080/ky
VUE_APP_API_BASE_URL=/api
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://localhost/onlinePreview

@ -63,7 +63,8 @@
"html-webpack-plugin": "^4.2.0",
"less": "^3.9.0",
"less-loader": "^4.1.0",
"vue-template-compiler": "^2.6.10"
"vue-template-compiler": "^2.6.10",
"webpack": "^4.0.0"
},
"eslintConfig": {
"root": true,

@ -146,6 +146,9 @@
</script>
<style scoped>
@import '~@assets/less/index.less';
/*import '@/assets/less/index.less'*/
.anty-img-wrap {
height: 25px;
position: relative;
@ -159,5 +162,4 @@
margin-top: 20px;
}
@import '@/assets/less/index.less';
</style>

@ -1,5 +1,5 @@
const path = require('path')
const CompressionPlugin = require("compression-webpack-plugin")
const CompressionPlugin = require('compression-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, dir)

Loading…
Cancel
Save