[PM-11342] Fix 404 missing styles (#11147)

Fix 404 page lacking styles on nested pages.
This commit is contained in:
Oscar Hinton 2024-09-19 14:56:47 +02:00 committed by GitHub
parent 354079725f
commit 6ffd85c42c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ const plugins = [
template: "./src/404.html",
filename: "404.html",
chunks: ["styles"],
// 404 page is a wildcard, this ensures it uses absolute paths.
publicPath: "/",
}),
new CopyWebpackPlugin({
patterns: [