@ovh-ux/manager-webpack-dev-server 2.8.4 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/package.json +2 -2
- package/src/config.js +7 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
# [3.0.0](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@2.10.0...@ovh-ux/manager-webpack-dev-server@3.0.0) (2022-09-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Code Refactoring
|
|
5
|
+
|
|
6
|
+
* **webpack-dev-server:** remove registry proxy ([825dc50](https://github.com/ovh/manager/commit/825dc5031e3d73c7f68e146f878e618040e05c03))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **webpack-dev-server:** remove registry proxy
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# [2.10.0](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@2.9.0...@ovh-ux/manager-webpack-dev-server@2.10.0) (2022-06-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **webpack-dev-server:** add container environment parameter ([76a136d](https://github.com/ovh/manager/commit/76a136db762846994e281b107cdd01eb1fb96ee8))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# [2.9.0](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@2.8.4...@ovh-ux/manager-webpack-dev-server@2.9.0) (2022-06-30)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **webpack-dev-server:** add container environment parameter ([61e3962](https://github.com/ovh/manager/commit/61e3962fda4e664fbfe2215d5cceed7ba2aa10d4))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
1
33
|
## [2.8.4](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@2.8.3...@ovh-ux/manager-webpack-dev-server@2.8.4) (2022-03-04)
|
|
2
34
|
|
|
3
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovh-ux/manager-webpack-dev-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "OVHcloud manager webpack development server configuration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "OVH SAS",
|
|
16
16
|
"main": "src/index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@ovh-ux/manager-dev-server-config": "^
|
|
18
|
+
"@ovh-ux/manager-dev-server-config": "^5.0.0",
|
|
19
19
|
"duplicate-package-checker-webpack-plugin": "^3.0.0",
|
|
20
20
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
21
21
|
"webpack-dev-server": "^3.11.0",
|
package/src/config.js
CHANGED
|
@@ -13,16 +13,9 @@ module.exports = (env) => {
|
|
|
13
13
|
process.env.npm_package_config_region ||
|
|
14
14
|
'eu'
|
|
15
15
|
).toLowerCase();
|
|
16
|
-
const proxy = [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
local:
|
|
20
|
-
yn(env.localRegistry) ||
|
|
21
|
-
yn(process.env.npm_package_config_localRegistry),
|
|
22
|
-
registryUrl:
|
|
23
|
-
env.registryUrl || process.env.npm_package_config_registryUrl,
|
|
24
|
-
}),
|
|
25
|
-
];
|
|
16
|
+
const proxy = [serverProxy.v6(region)];
|
|
17
|
+
|
|
18
|
+
const isContainer = env.container || process.env.CONTAINER;
|
|
26
19
|
|
|
27
20
|
const sso = new Sso(region);
|
|
28
21
|
|
|
@@ -51,8 +44,11 @@ module.exports = (env) => {
|
|
|
51
44
|
port:
|
|
52
45
|
env.port ||
|
|
53
46
|
Number.parseInt(process.env.npm_package_config_port, 10) ||
|
|
54
|
-
|
|
47
|
+
isContainer
|
|
48
|
+
? 9001
|
|
49
|
+
: 9000,
|
|
55
50
|
proxy,
|
|
51
|
+
publicPath: isContainer ? '/app' : '/',
|
|
56
52
|
},
|
|
57
53
|
};
|
|
58
54
|
};
|