mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-01 14:04:04 +03:00
28 lines
622 B
JavaScript
28 lines
622 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 %}
|
|
},
|
|
client: {
|
|
overlay: {
|
|
errors: true,
|
|
warnings: false,
|
|
runtimeErrors: true,
|
|
},
|
|
},
|
|
// We need hot=false (Disable HMR) to set liveReload=true
|
|
hot: false,
|
|
liveReload: true,
|
|
},
|
|
});
|