2023-01-29 15:12:12 +03:00
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const commonConfig = require('./common.config');
|
|
|
|
|
|
|
|
module.exports = merge(commonConfig, {
|
|
|
|
mode: 'development',
|
|
|
|
devtool: 'inline-source-map',
|
|
|
|
devServer: {
|
|
|
|
port: 3000,
|
2024-02-23 17:38:40 +03:00
|
|
|
proxy: [
|
|
|
|
{
|
|
|
|
context: ['/'],
|
|
|
|
{%- if cookiecutter.use_docker == 'n' %}
|
|
|
|
target: 'http://0.0.0.0:8000',
|
|
|
|
{%- else %}
|
|
|
|
target: 'http://django:8000',
|
|
|
|
{%- endif %}
|
|
|
|
},
|
|
|
|
],
|
2024-01-27 12:34:23 +03:00
|
|
|
client: {
|
|
|
|
overlay: {
|
|
|
|
errors: true,
|
|
|
|
warnings: false,
|
|
|
|
runtimeErrors: true,
|
|
|
|
},
|
|
|
|
},
|
2023-01-29 15:12:12 +03:00
|
|
|
// We need hot=false (Disable HMR) to set liveReload=true
|
|
|
|
hot: false,
|
|
|
|
liveReload: true,
|
|
|
|
},
|
|
|
|
});
|