Skip to content

Commit 98b37df

Browse files
authored
Upgrade html-webpack-plugin to fix tests (facebook#5031)
* Upgrade html webpack plugin * Fix build
1 parent 8d46677 commit 98b37df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/webpack.config.dev.js

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

config/webpack.config.prod.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"fs-extra": "5.0.0",
4848
"graphql": "0.13.2",
4949
"graphql-tag": "2.9.2",
50-
"html-webpack-plugin": "3.2.0",
50+
"html-webpack-plugin": "4.0.0-alpha.2",
5151
"identity-obj-proxy": "3.0.0",
5252
"jest": "23.5.0",
5353
"loader-utils": "1.1.0",

0 commit comments

Comments
 (0)