Skip to content

Commit 43a71a9

Browse files
committed
Modern config only for local dev, fixing multi-compiler issues with HRM
Reference “Multi-compiler mode, hot-update.json 404” -> webpack/webpack-dev-server#2355 Signed-off-by: Andrew Welch <[email protected]>
1 parent 89875a6 commit 43a71a9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack.dev.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66
const webpack = require('webpack');
77

88
// webpack plugins
9-
const DashboardPlugin = require('webpack-dashboard/plugin');
9+
var DashboardPlugin = require('webpack-dashboard/plugin');
1010

1111
// config files
1212
const common = require('./webpack.common.js');
@@ -64,7 +64,6 @@ const configurePostcssLoader = () => {
6464
{
6565
loader: 'css-loader',
6666
options: {
67-
url: false,
6867
importLoaders: 2,
6968
sourceMap: true
7069
}
@@ -75,7 +74,10 @@ const configurePostcssLoader = () => {
7574
{
7675
loader: 'postcss-loader',
7776
options: {
78-
sourceMap: true
77+
sourceMap: true,
78+
config: {
79+
path: path.resolve(__dirname),
80+
}
7981
}
8082
}
8183
]

0 commit comments

Comments
 (0)