1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

Bump webpack-dev-server from 4.15.2 to 5.2.2 in /frontend (#7897)

* Bump webpack-dev-server from 4.15.2 to 5.2.2 in /frontend

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.15.2 to 5.2.2.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.15.2...v5.2.2)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-version: 5.2.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* change webpack dev server config v5

* update caniuse-lite

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael An <1822852997@qq.com>
This commit is contained in:
dependabot[bot]
2025-06-06 16:07:13 +08:00
committed by GitHub
parent 6e2ec23146
commit 27d69828ce
6 changed files with 366 additions and 62 deletions

View File

@@ -34,7 +34,7 @@ const devServerOptions = {
},
// Enable gzip compression of generated files.
compress: true,
https: getHttpsConfig(),
server: getHttpsConfig(),
host: HOST,
port: PORT,
};
@@ -50,9 +50,20 @@ try {
console.log(`Listening at http://${HOST}:${PORT}${publicPath}`);
});
async function stopServer() {
try {
await server.stop();
} catch (error) {
console.error('Close server error:', error);
process.exit(1);
}
}
['SIGINT', 'SIGTERM'].forEach(function (sig) {
process.on(sig, function () {
server.close();
stopServer().then(() => {
process.exit(0);
});
process.exit();
});
});