Open aldokkani opened 5 years ago
Yes, you have to copy the script at the root of your project.
I really like this project @websemantics and I think the documentation is not clear enough. Investigating the code made me understand the principle and get it to work.
<script type="text/javascript" src="ghspa.js"></script>
AND a 404
title<script type="text/javascript" src="ghspa.js"></script>
Both 404.html and index.html must include the script as the its function will redirect from the 404 page and resolve the redirected link when landing on index.html.
Apart from that, good work @websemantics!
<script type="text/javascript" src="../node_modules/ghspa/ghspa.js"></script>
After you build your app this path won't exist.