|
@@ -9,7 +9,7 @@ module.exports = WebpackMerge.merge(baseConfig, {
|
|
|
//避免其他模块修改,但是该模块未修改时候,重新构建,能够更快的进行增量构建
|
|
//避免其他模块修改,但是该模块未修改时候,重新构建,能够更快的进行增量构建
|
|
|
//属于空间换时间的做法
|
|
//属于空间换时间的做法
|
|
|
cache: true,
|
|
cache: true,
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 代码入口
|
|
// 代码入口
|
|
|
entry: {
|
|
entry: {
|
|
|
// 注册界面
|
|
// 注册界面
|
|
@@ -57,49 +57,55 @@ module.exports = WebpackMerge.merge(baseConfig, {
|
|
|
// eslint-disable-next-line max-len
|
|
// eslint-disable-next-line max-len
|
|
|
//'Content-Security-Policy': 'upgrade-insecure-requests; default-src \'none\'; base-uri \'self\'; frame-ancestors \'none\'; script-src \'self\' \'nonce-11111\'; connect-src \'self\'; form-action \'self\'; frame-src \'self\'; img-src \'self\'; font-src \'self\'; style-src \'self\' \'nonce-11111\'; manifest-src \'none\'; worker-src \'self\'; media-src \'self\'; object-src \'self\';',
|
|
//'Content-Security-Policy': 'upgrade-insecure-requests; default-src \'none\'; base-uri \'self\'; frame-ancestors \'none\'; script-src \'self\' \'nonce-11111\'; connect-src \'self\'; form-action \'self\'; frame-src \'self\'; img-src \'self\'; font-src \'self\'; style-src \'self\' \'nonce-11111\'; manifest-src \'none\'; worker-src \'self\'; media-src \'self\'; object-src \'self\';',
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
proxy: {
|
|
proxy: {
|
|
|
'/api': {
|
|
'/api': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/static': {
|
|
'/static': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ '/content': {
|
|
|
|
|
+ target: 'http://localhost:83/',
|
|
|
|
|
+ ws: false,
|
|
|
|
|
+ changeOrigin: true,
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/dashboard': {
|
|
'/dashboard': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/mock': {
|
|
'/mock': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/authApi': {
|
|
'/authApi': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/Dictionary': {
|
|
'/Dictionary': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/Files': {
|
|
'/Files': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: false,
|
|
ws: false,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
'/WebSocket': {
|
|
'/WebSocket': {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
@@ -115,7 +121,7 @@ module.exports = WebpackMerge.merge(baseConfig, {
|
|
|
target: 'http://localhost:83/',
|
|
target: 'http://localhost:83/',
|
|
|
ws: true,
|
|
ws: true,
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- secure:true,
|
|
|
|
|
|
|
+ secure: true,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|