From 43a71a9850016ccc56c4ef332c181af8ec16249a Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 13 Aug 2020 22:48:33 -0400 Subject: [PATCH 1/3] Modern config only for local dev, fixing multi-compiler issues with HRM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reference “Multi-compiler mode, hot-update.json 404” -> https://github.com/webpack/webpack-dev-server/issues/2355 Signed-off-by: Andrew Welch --- webpack.dev.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webpack.dev.js b/webpack.dev.js index 513cd15..665206c 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -6,7 +6,7 @@ const path = require('path'); const webpack = require('webpack'); // webpack plugins -const DashboardPlugin = require('webpack-dashboard/plugin'); +var DashboardPlugin = require('webpack-dashboard/plugin'); // config files const common = require('./webpack.common.js'); @@ -64,7 +64,6 @@ const configurePostcssLoader = () => { { loader: 'css-loader', options: { - url: false, importLoaders: 2, sourceMap: true } @@ -75,7 +74,10 @@ const configurePostcssLoader = () => { { loader: 'postcss-loader', options: { - sourceMap: true + sourceMap: true, + config: { + path: path.resolve(__dirname), + } } } ] From 785b3eb32d18862f70ee8a693fd994a06de8948c Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 13 Aug 2020 22:56:39 -0400 Subject: [PATCH 2/3] Use const Signed-off-by: Andrew Welch --- webpack.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.dev.js b/webpack.dev.js index 665206c..b3fb61f 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -6,7 +6,7 @@ const path = require('path'); const webpack = require('webpack'); // webpack plugins -var DashboardPlugin = require('webpack-dashboard/plugin'); +const DashboardPlugin = require('webpack-dashboard/plugin'); // config files const common = require('./webpack.common.js'); From c9fcd891b567988f640adc7be7d30034bcabe8e2 Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Thu, 13 Aug 2020 22:56:47 -0400 Subject: [PATCH 3/3] Version 1.1.7 Signed-off-by: Andrew Welch --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd9b485..54ac7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Annotated webpack 4 config changelog +## 1.1.7 - 2020.08.13 +### Fixed +* Modern config only for local dev, [fixing multi-compiler issues](https://github.com/webpack/webpack-dev-server/issues/2355) with HRM + ## 1.1.6 - 2020.08.12 ### Changed * Remove `[hash]` from dev config to eliminate potential [memory errors](https://github.com/webpack/webpack-dev-server/issues/438) diff --git a/package.json b/package.json index 10c3754..db9c826 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "example-project", - "version": "1.1.6", + "version": "1.1.7", "description": "Example Project brand website", "keywords": [ "Example",