Fix 404 and polityka-prywatnosci.html
This commit is contained in:
parent
8bc59cfa50
commit
2180680141
2 changed files with 21 additions and 0 deletions
13
public/polityka-prywatnosci.html
Normal file
13
public/polityka-prywatnosci.html
Normal 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>
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue