Only specify devServer options for first webpack config

This avoids `[webpack-dev-middleware] ConcurrentCompilationError`
issues when running `webpack serve`. However, it prevents running the
dev server for just the `wall-display` config (as it no longer has the
`/calendar` proxy route defined.
This commit is contained in:
Adam Goldsmith 2022-10-13 00:18:18 -04:00
parent 94e59b83bf
commit 652f78944a

View File

@ -2,14 +2,6 @@ const path = require('path');
const common = {
mode: 'development',
devServer: {
proxy: {
'/calendar': {
target: 'https://calendar.google.com',
changeOrigin: true,
},
},
},
module: {
rules: [
{
@ -38,6 +30,15 @@ module.exports = [
...common,
name: 'default',
entry: './src/index.ts',
devServer: {
allowedHosts: 'all',
proxy: {
'/calendar': {
target: 'https://calendar.google.com',
changeOrigin: true,
},
},
},
module: {
rules: [
{