feat: copy PDFs from ./public/ folder to ./build/ on build

This commit is contained in:
AtHeartEngineer
2022-12-07 15:52:42 +00:00
parent f570764029
commit 179e68a8db

View File

@@ -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(),
],