mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-12-11 12:14:33 +03:00
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:
parent
4db3ea1e58
commit
0ca9be321a
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -6,13 +6,16 @@ module.exports = merge(commonConfig, {
|
|||
devtool: 'inline-source-map',
|
||||
devServer: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
{%- if cookiecutter.use_docker == 'n' %}
|
||||
'/': 'http://0.0.0.0:8000',
|
||||
{%- else %}
|
||||
'/': 'http://django:8000',
|
||||
{%- endif %}
|
||||
},
|
||||
proxy: [
|
||||
{
|
||||
context: ['/'],
|
||||
{%- if cookiecutter.use_docker == 'n' %}
|
||||
target: 'http://0.0.0.0:8000',
|
||||
{%- else %}
|
||||
target: 'http://django:8000',
|
||||
{%- endif %}
|
||||
},
|
||||
],
|
||||
client: {
|
||||
overlay: {
|
||||
errors: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user