Fix 404 and polityka-prywatnosci.html

This commit is contained in:
Mikołaj Pich 2020-01-02 19:23:52 +01:00
parent 8bc59cfa50
commit 2180680141
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<script>
// ====================================================================================================================
// This text is simply to make sure the 404.html file is bigger than 512 bytes, else, internet explorer will ignore it.
// Thank you internet explorer for requiring such awesome workarounds in order to work properly
// ====================================================================================================================
sessionStorage.redirect = location.pathname;
</script>
<meta http-equiv="refresh" content="0;URL='/polityka-prywatnosci'">
</head>
</html>

View file

@ -82,6 +82,14 @@ if (process.env.NODE_ENV === 'production') {
filename: path.resolve(__dirname, 'dist/index.html'),
favicon: 'public/favicon.ico',
}),
new HtmlWebpackPlugin({
template: 'public/polityka-prywatnosci.html',
filename: path.resolve(__dirname, 'dist/polityka-prywatnosci.html'),
}),
new HtmlWebpackPlugin({
template: 'public/404.html',
filename: path.resolve(__dirname, 'dist/404.html'),
}),
new PrerenderSPAPlugin({
staticDir: path.join(__dirname, 'dist'),
routes: [