mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-17 18:34:52 +03:00
Fix a couple of issues with Webpack + Docker
This commit is contained in:
parent
0d1fcf6d68
commit
4e690bf5fc
|
@ -124,7 +124,9 @@ services:
|
||||||
command: npm run dev
|
command: npm run dev
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
|
{%- if cookiecutter.frontend_pipeline == 'Gulp' %}
|
||||||
# Expose browsersync UI: https://www.browsersync.io/docs/options/#option-ui
|
# Expose browsersync UI: https://www.browsersync.io/docs/options/#option-ui
|
||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -7,7 +7,11 @@ module.exports = merge(commonConfig, {
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
proxy: {
|
proxy: {
|
||||||
|
{%- if cookiecutter.use_docker == 'n' %}
|
||||||
'/': 'http://0.0.0.0:8000',
|
'/': 'http://0.0.0.0:8000',
|
||||||
|
{%- else %}
|
||||||
|
'/': 'http://django:8000',
|
||||||
|
{%- endif %}
|
||||||
},
|
},
|
||||||
// We need hot=false (Disable HMR) to set liveReload=true
|
// We need hot=false (Disable HMR) to set liveReload=true
|
||||||
hot: false,
|
hot: false,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user