mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 19:14:03 +03:00
0ca9be321a
* 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>
31 lines
679 B
JavaScript
31 lines
679 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: [
|
|
{
|
|
context: ['/'],
|
|
{%- if cookiecutter.use_docker == 'n' %}
|
|
target: 'http://0.0.0.0:8000',
|
|
{%- else %}
|
|
target: '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,
|
|
},
|
|
});
|