Bump webpack-dev-server to 5.0.2 (#4875)

* Bump webpack-dev-server in /{{cookiecutter.project_slug}}

Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 4.15.1 to 5.0.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.1...v5.0.2)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* Update server proxy syntax for webpack-dev-server@v5

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
dependabot[bot] 2024-02-23 14:38:40 +00:00 committed by GitHub
parent 4db3ea1e58
commit 0ca9be321a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 8 deletions

View File

@ -31,7 +31,7 @@
"webpack": "^5.65.0",
"webpack-bundle-tracker": "^3.0.1",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.6.0",
"webpack-dev-server": "^5.0.2",
"webpack-merge": "^5.8.0"
},
"engines": {

View File

@ -6,13 +6,16 @@ module.exports = merge(commonConfig, {
devtool: 'inline-source-map',
devServer: {
port: 3000,
proxy: {
proxy: [
{
context: ['/'],
{%- if cookiecutter.use_docker == 'n' %}
'/': 'http://0.0.0.0:8000',
target: 'http://0.0.0.0:8000',
{%- else %}
'/': 'http://django:8000',
target: 'http://django:8000',
{%- endif %}
},
],
client: {
overlay: {
errors: true,