|
@@ -1,11 +1,11 @@
|
|
|
-const path = require('path')
|
|
|
-const name = 'wanda-adm'
|
|
|
-const devServerPort = 28888
|
|
|
-const stageServerPort = 28889
|
|
|
+const path = require("path");
|
|
|
+const name = "wanda-adm";
|
|
|
+const devServerPort = 28888;
|
|
|
+const stageServerPort = 28889;
|
|
|
module.exports = {
|
|
|
// TODO: Remember to change publicPath to fit your need
|
|
|
- publicPath: process.env.NODE_ENV === 'production' ? '/wanda-adm/' : '/',
|
|
|
- lintOnSave: process.env.NODE_ENV === 'development',
|
|
|
+ publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
|
|
|
+ lintOnSave: process.env.NODE_ENV === "development",
|
|
|
productionSourceMap: false,
|
|
|
devServer: {
|
|
|
port: devServerPort,
|
|
@@ -21,45 +21,41 @@ module.exports = {
|
|
|
changeOrigin: true, // needed for virtual hosted sites
|
|
|
ws: true, // proxy websockets
|
|
|
pathRewrite: {
|
|
|
- ['^' + process.env.VUE_APP_BASE_API]: ''
|
|
|
+ ["^" + process.env.VUE_APP_BASE_API]: ""
|
|
|
}
|
|
|
},
|
|
|
- '/datacenter': {
|
|
|
- target: 'http://192.168.64.17:28890',
|
|
|
+ "/datacenter": {
|
|
|
+ target: "http://192.168.64.17:28890",
|
|
|
changeOrigin: true
|
|
|
},
|
|
|
- '/equip-component': {
|
|
|
- target: 'http://192.168.64.17:28890',
|
|
|
+ "/equip-component": {
|
|
|
+ target: "http://192.168.64.17:28890",
|
|
|
changeOrigin: true
|
|
|
},
|
|
|
- '/modelapi': {
|
|
|
- target: 'http://39.102.40.239:8080',
|
|
|
+ "/modelapi": {
|
|
|
+ target: "http://192.168.64.17:28890",
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
- '^/modelapi': '/revit-algorithm'
|
|
|
+ "^/modelapi": "/revit-algorithm"
|
|
|
}
|
|
|
},
|
|
|
- '/message-center': {
|
|
|
- target: 'http://39.102.40.239:8080',
|
|
|
+ "/message-center": {
|
|
|
+ target: "http://192.168.64.17:28890",
|
|
|
changeOrigin: true
|
|
|
},
|
|
|
- '/image-service': {
|
|
|
- target: 'http://39.97.179.199:8891',
|
|
|
+ "/image-service": {
|
|
|
+ target: "http://39.97.179.199:8891",
|
|
|
changeOrigin: true
|
|
|
- },
|
|
|
- '/rwd': {
|
|
|
- target: 'http://39.102.40.239:9970/',
|
|
|
- changeOrigin: false
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
pluginOptions: {
|
|
|
- 'style-resources-loader': {
|
|
|
- preProcessor: 'scss',
|
|
|
+ "style-resources-loader": {
|
|
|
+ preProcessor: "scss",
|
|
|
patterns: [
|
|
|
- path.resolve(__dirname, 'src/styles/_variables.scss'),
|
|
|
- path.resolve(__dirname, 'src/styles/_mixins.scss')
|
|
|
+ path.resolve(__dirname, "src/styles/_variables.scss"),
|
|
|
+ path.resolve(__dirname, "src/styles/_mixins.scss")
|
|
|
]
|
|
|
}
|
|
|
},
|
|
@@ -67,9 +63,9 @@ module.exports = {
|
|
|
//在html网页包插件的选项列表中提供应用程序的标题,以便
|
|
|
//可以在中访问索引.html插入正确的标题。
|
|
|
// https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-plugin
|
|
|
- config.plugin('html').tap(args => {
|
|
|
- args[0].title = name
|
|
|
- return args
|
|
|
- })
|
|
|
+ config.plugin("html").tap(args => {
|
|
|
+ args[0].title = name;
|
|
|
+ return args;
|
|
|
+ });
|
|
|
}
|
|
|
-}
|
|
|
+};
|