Skip to content

Commit

Permalink
Modern config only for local dev, fixing multi-compiler issues with HRM
Browse files Browse the repository at this point in the history
Reference “Multi-compiler mode, hot-update.json 404” -> webpack/webpack-dev-server#2355

Signed-off-by: Andrew Welch <[email protected]>
  • Loading branch information
khalwat committed Aug 14, 2020
1 parent 89875a6 commit 43a71a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -64,7 +64,6 @@ const configurePostcssLoader = () => {
{
loader: 'css-loader',
options: {
url: false,
importLoaders: 2,
sourceMap: true
}
Expand All @@ -75,7 +74,10 @@ const configurePostcssLoader = () => {
{
loader: 'postcss-loader',
options: {
sourceMap: true
sourceMap: true,
config: {
path: path.resolve(__dirname),
}
}
}
]
Expand Down

0 comments on commit 43a71a9

Please sign in to comment.