1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +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

@@ -143,9 +143,20 @@ checkBrowsers(paths.appPath, isInteractive)
openBrowser(urls.localUrlForBrowser);
});
async function stopServer() {
try {
await devServer.stop();
} catch (error) {
console.error('Close devServer error:', error);
process.exit(1);
}
}
['SIGINT', 'SIGTERM'].forEach(function (sig) {
process.on(sig, function () {
devServer.close();
stopServer().then(() => {
process.exit(0);
});
process.exit();
});
});
@@ -153,7 +164,9 @@ checkBrowsers(paths.appPath, isInteractive)
if (process.env.CI !== 'true') {
// Gracefully exit when stdin ends
process.stdin.on('end', function () {
devServer.close();
stopServer().then(() => {
process.exit(0);
});
process.exit();
});
}