diff --git a/examples/dogfooding/index.html b/examples/dogfooding/index.html index 3e9337a..a7e52ab 100644 --- a/examples/dogfooding/index.html +++ b/examples/dogfooding/index.html @@ -4,10 +4,10 @@ Waku Dogfooding - Refactored - - - - + + + +
@@ -57,6 +57,5 @@

Waku Dogfooding App - Modern UI

- \ No newline at end of file diff --git a/examples/dogfooding/package.json b/examples/dogfooding/package.json index e4f7f3e..d978ced 100644 --- a/examples/dogfooding/package.json +++ b/examples/dogfooding/package.json @@ -18,9 +18,9 @@ "@libp2p/interface": "^2.1.3", "@types/node": "^20.12.11", "copy-webpack-plugin": "^11.0.0", - "html-webpack-plugin": "^5.6.3", "eslint": "^8", "eslint-config-next": "13.5.6", + "html-webpack-plugin": "^5.6.3", "ts-loader": "^9.5.1", "typescript": "^5.4.5", "webpack": "^5.74.0", diff --git a/examples/dogfooding/webpack.config.js b/examples/dogfooding/webpack.config.js index 5762d37..2615c07 100644 --- a/examples/dogfooding/webpack.config.js +++ b/examples/dogfooding/webpack.config.js @@ -1,4 +1,5 @@ const CopyWebpackPlugin = require("copy-webpack-plugin"); +const HtmlWebpackPlugin = require("html-webpack-plugin"); const path = require("path"); const isProduction = process.env.NODE_ENV === 'production'; @@ -32,9 +33,18 @@ module.exports = { global: false }, plugins: [ + new HtmlWebpackPlugin({ + template: "index.html", + filename: "index.html", + inject: 'head', + scriptLoading: 'defer', + publicPath: publicPath, + templateParameters: { + removeScript: true + } + }), new CopyWebpackPlugin({ patterns: [ - { from: "index.html", to: "index.html" }, { from: "public/style.css", to: "style.css" }, { from: "manifest.json", to: "manifest.json" }, { from: "favicon.ico", to: "favicon.ico" },