@ovh-ux/manager-webpack-dev-server 3.0.1 → 4.0.1
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 +33 -0
- package/package.json +4 -6
- package/src/config.js +11 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [4.0.1](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@4.0.0...@ovh-ux/manager-webpack-dev-server@4.0.1) (2024-02-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ovh-ux/manager-webpack-dev-server
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [4.0.0](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@3.0.1...@ovh-ux/manager-webpack-dev-server@4.0.0) (2023-09-07)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Build System
|
|
18
|
+
|
|
19
|
+
* bump nodejs to v18 and webpack to v5 ([6270204](https://github.com/ovh/manager/commit/6270204e59bbfb87ec000c5853be08027affbb69))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* bump webpack from v4 to v5
|
|
25
|
+
|
|
26
|
+
Signed-off-by: Florian Renaut <florian.renaut@corp.ovh.com>
|
|
27
|
+
Co-authored-by: Jisay <jean-christophe.alleman@corp.ovh.com>
|
|
28
|
+
Co-authored-by: Anoop N <anoop.n@ovhcloud.com>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
1
34
|
## [3.0.1](https://github.com/ovh/manager/compare/@ovh-ux/manager-webpack-dev-server@3.0.0...@ovh-ux/manager-webpack-dev-server@3.0.1) (2022-10-19)
|
|
2
35
|
|
|
3
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovh-ux/manager-webpack-dev-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "OVHcloud manager webpack development server configuration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -15,10 +15,8 @@
|
|
|
15
15
|
"author": "OVH SAS",
|
|
16
16
|
"main": "src/index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@ovh-ux/manager-dev-server-config": "^
|
|
19
|
-
"
|
|
20
|
-
"friendly-errors-webpack-plugin": "^1.7.0",
|
|
21
|
-
"webpack-dev-server": "^3.11.0",
|
|
18
|
+
"@ovh-ux/manager-dev-server-config": "^6.1.0",
|
|
19
|
+
"webpack-dev-server": "^4.11.1",
|
|
22
20
|
"yn": "^4.0.0"
|
|
23
21
|
}
|
|
24
|
-
}
|
|
22
|
+
}
|
package/src/config.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
const devServerConfig = require('@ovh-ux/manager-dev-server-config');
|
|
2
|
-
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
3
|
-
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
|
|
4
2
|
const yn = require('yn');
|
|
5
3
|
|
|
6
4
|
const serverProxy = { ...devServerConfig.proxy };
|
|
@@ -29,20 +27,18 @@ module.exports = (env) => {
|
|
|
29
27
|
}
|
|
30
28
|
return {
|
|
31
29
|
mode: 'development',
|
|
32
|
-
plugins: [
|
|
33
|
-
new DuplicatePackageCheckerPlugin(),
|
|
34
|
-
new FriendlyErrorsWebpackPlugin(),
|
|
35
|
-
],
|
|
36
30
|
devServer: {
|
|
37
|
-
|
|
38
|
-
app.get('/auth', sso.auth.bind(sso));
|
|
39
|
-
app.get('/auth/check', sso.checkAuth.bind(sso));
|
|
31
|
+
setupMiddlewares(middlewares, devServer) {
|
|
32
|
+
devServer.app.get('/auth', sso.auth.bind(sso));
|
|
33
|
+
devServer.app.get('/auth/check', sso.checkAuth.bind(sso));
|
|
34
|
+
return middlewares;
|
|
40
35
|
},
|
|
41
|
-
clientLogLevel: 'none',
|
|
42
|
-
logLevel: 'silent',
|
|
43
36
|
host: env.host || process.env.npm_package_config_host || 'localhost',
|
|
44
37
|
https: env.https || yn(process.env.npm_package_config_https) || false,
|
|
45
|
-
|
|
38
|
+
client: {
|
|
39
|
+
overlay: true,
|
|
40
|
+
logging: 'none',
|
|
41
|
+
},
|
|
46
42
|
port:
|
|
47
43
|
env.port ||
|
|
48
44
|
Number.parseInt(process.env.npm_package_config_port, 10) ||
|
|
@@ -50,7 +46,9 @@ module.exports = (env) => {
|
|
|
50
46
|
? 9001
|
|
51
47
|
: 9000,
|
|
52
48
|
proxy,
|
|
53
|
-
|
|
49
|
+
},
|
|
50
|
+
output: {
|
|
51
|
+
publicPath: isContainer ? '/app/' : '/',
|
|
54
52
|
},
|
|
55
53
|
};
|
|
56
54
|
};
|