mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 19:44:00 +03:00
21 lines
499 B
JavaScript
21 lines
499 B
JavaScript
|
const { merge } = require('webpack-merge');
|
||
|
const commonConfig = require('./common.config');
|
||
|
|
||
|
module.exports = merge(commonConfig, {
|
||
|
mode: 'development',
|
||
|
devtool: 'inline-source-map',
|
||
|
devServer: {
|
||
|
port: 3000,
|
||
|
proxy: {
|
||
|
{%- if cookiecutter.use_docker == 'n' %}
|
||
|
'/': 'http://0.0.0.0:8000',
|
||
|
{%- else %}
|
||
|
'/': 'http://django:8000',
|
||
|
{%- endif %}
|
||
|
},
|
||
|
// We need hot=false (Disable HMR) to set liveReload=true
|
||
|
hot: false,
|
||
|
liveReload: true,
|
||
|
},
|
||
|
});
|