Skip to content

Commit eb2f2e8

Browse files
authored
Merge pull request #317 from halfzebra/upgrade-react-dev-utils
fix: Upgrade react-dev-utils and html-webpack-plugin
2 parents ffd259e + cc1bae6 commit eb2f2e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ module.exports = {
247247
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
248248
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
249249
// In development, this will be an empty string.
250-
new InterpolateHtmlPlugin(env.raw),
250+
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
251251
// Makes some environment variables available to the JS code, for example:
252252
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
253253
new webpack.DefinePlugin(env.stringified),

config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ module.exports = {
293293
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
294294
// In production, it will be an empty string unless you specify "homepage"
295295
// in `package.json`, in which case it will be the pathname of that URL.
296-
new InterpolateHtmlPlugin(env.raw),
296+
new InterpolateHtmlPlugin(HtmlWebpackPlugin, env.raw),
297297
// Makes some environment variables available to the JS code, for example:
298298
// if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`.
299299
// It is absolutely essential that NODE_ENV was set to production here.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
"elm-webpack-loader": "^5.0.0",
4141
"file-loader": "^1.1.6",
4242
"fs-extra": "^6.0.1",
43-
"html-webpack-plugin": "^3.0.7",
43+
"html-webpack-plugin": "^4.0.0-alpha.2",
4444
"http-proxy-middleware": "^0.17.4",
4545
"mini-css-extract-plugin": "^0.4.0",
4646
"minimist": "1.2.0",
4747
"postcss-flexbugs-fixes": "^3.3.0",
4848
"postcss-loader": "2.1.5",
4949
"promise": "8.0.1",
5050
"prompt": "1.0.0",
51-
"react-dev-utils": "6.0.0-next.3e165448",
51+
"react-dev-utils": "6.1.1",
5252
"react-error-overlay": "^4.0.0",
5353
"string-replace-loader": "^2.1.1",
5454
"style-loader": "^0.21.0",

0 commit comments

Comments
 (0)