Upgrade html-webpack-plugin to fix tests (#5031)

* Upgrade html webpack plugin

* Fix build
This commit is contained in:
Joe Haddad
2018-09-19 12:09:18 -04:00
committed by GitHub
parent d55525651f
commit c1ccbbc282
5 changed files with 43 additions and 45 deletions

View File

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