update 配置文件提出来
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
window._CONFIG = {}
|
||||||
|
window._CONFIG.documentUrl = 'http://10.0.1.19:8184/laws-sinotruk/onlyoffice/downLoadFile?path='
|
||||||
|
window._CONFIG.callbackUrl = 'http://10.0.1.19:8184/'
|
||||||
|
window._CONFIG.configUrl = 'http://10.0.1.19:8082/'
|
||||||
+6
-31
@@ -6,41 +6,16 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
|
<!--开发环境-->
|
||||||
|
<% if (process.env.NODE_ENV === 'development' ) { %>
|
||||||
<!-- onlyOffice服务器地址-->
|
<!-- onlyOffice服务器地址-->
|
||||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
<script type="text/javascript" src="http://10.10.10.45:8103/web-apps/apps/api/documents/api.js"></script>
|
||||||
<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>
|
<script src="<%= BASE_URL %>dev_api_config.js"></script>
|
||||||
<!--<script type="text/javascript" src="http://only.hzwlsoft.com/web-apps/apps/api/documents/api.js"></script>-->
|
|
||||||
<!--<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>-->
|
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<!--测试环境-->
|
||||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
<% if (process.env.NODE_ENV === 'production' ) { %>
|
||||||
<!--<script type="text/javascript" src="http://10.10.10.45:80/web-apps/apps/api/documents/api.js"></script>-->
|
|
||||||
<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>
|
<script type="text/javascript" src="http://onlyoffice.sinotruk.com/web-apps/apps/api/documents/api.js"></script>
|
||||||
<% } %>
|
<script src="<%= BASE_URL %>prod_api_config.js"></script>
|
||||||
<!-- 全局配置 -->
|
|
||||||
<% if (process.env.NODE_ENV === 'development' ) { %>
|
|
||||||
<script>
|
|
||||||
window._CONFIG = {
|
|
||||||
// 'documentUrl': 'http://onlyofficevue.sinotruk.com/DOCX.docx',
|
|
||||||
// 'documentUrl': 'http://39.98.140.126:18888/file/model/task_9ad64b01/task_9ad64b01_top_9ad64b01_node.docx',
|
|
||||||
'documentUrl': 'http://10.0.1.28:8184/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
|
||||||
// 'documentUrl': 'http://139.9.235.66:8184/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
|
||||||
'callbackUrl': 'http://10.0.1.28:8184/',
|
|
||||||
// 'callbackUrl': 'http://139.9.235.66:8184/',
|
|
||||||
// 'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
|
||||||
// 'configUrl': 'http://10.10.10.45:809/'
|
|
||||||
'configUrl': 'http://10.0.1.28:8081/'
|
|
||||||
// 'configUrl': 'http://192.168.31.181:8081/'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<% } %>
|
|
||||||
<% if (process.env.NODE_ENV === 'production' ) { %>
|
|
||||||
<script>
|
|
||||||
window._CONFIG = {
|
|
||||||
'documentUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path=',
|
|
||||||
'callbackUrl': 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/',
|
|
||||||
'configUrl': 'http://onlyofficeplugins.sinotruk.com/'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<% } %>
|
<% } %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
window._CONFIG = {}
|
||||||
|
window._CONFIG.documentUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/laws-sinotruk/onlyoffice/downLoadFile?path='
|
||||||
|
window._CONFIG.callbackUrl = 'http://laws-sinotruk-server-kmc2c.yf-grp:8080/'
|
||||||
|
window._CONFIG.configUrl = 'http://onlyofficeplugins.sinotruk.com/'
|
||||||
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
publicPath: '/',
|
||||||
|
outputDir:"onlyofficeui", //设置打包后的项目目录名称
|
||||||
css: {
|
css: {
|
||||||
loaderOptions: {
|
loaderOptions: {
|
||||||
less: {
|
less: {
|
||||||
@@ -33,5 +35,5 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user