From 179e68a8db564c96d6888ade5255770997bd996d Mon Sep 17 00:00:00 2001 From: AtHeartEngineer <1675654+AtHeartEngineer@users.noreply.github.com> Date: Wed, 7 Dec 2022 15:52:42 +0000 Subject: [PATCH] feat: copy PDFs from ./public/ folder to ./build/ on build --- webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 9049ca2..70f56f3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,7 +52,10 @@ module.exports = { filename: "styles.css", }), new CopyPlugin({ - patterns: [{ from: "./public/manifest.json", to: "manifest.json" }], + patterns: [ + { from: "./public/manifest.json", to: "manifest.json" }, + { from: "./public/*.pdf", to: "[name][ext]" } + ], }), // new HtmlWebpackInlineSourcePlugin(), ],