Explorar o código

update webpack to use new html plugin opts

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
8d41b396bd
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      dashboard/webpack.config.js

+ 1 - 4
dashboard/webpack.config.js

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