- 0: bake in a fake URL-token at build time using https://vuepress.vuejs.org/config/#base.
- 1: post-build: regex out fake token in everything except JS.
- 2: make the html/css paths relative. tip: https://github.com/olizilla/all-relative might be useful here.
- 3: create a method to check if a site is loaded from an IPFS namespace and return the current hash or IPNS domain. tip:
window.location.pathname.split('/')[1] || "/"
- 4: replace all refs to the URL-token in JS to the new IPFS base path method created in 3.
- 5: provided the plugins and router behave correctly this should now be IPFS aware.
Related open issues: