Преглед изворни кода

update webpack to use new html plugin opts

Alexander Belanger пре 4 година
родитељ
комит
8d41b396bd
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      dashboard/webpack.config.js

+ 1 - 4
dashboard/webpack.config.js

@@ -109,10 +109,7 @@ module.exports = () => {
       hot: true,
     },
     plugins: [
-      new HtmlWebpackPlugin({
-        template: path.resolve(__dirname, "src", "index.html"),
-        segmentKey: `${process.env.SEGMENT_PUBLIC_KEY}`,
-      }),
+      new HtmlWebpackPlugin(htmlPluginOpts),
       new webpack.DefinePlugin(envKeys),
       isDevelopment && new ReactRefreshWebpackPlugin(),
     ].filter(Boolean),