My portfolio site reimagined and updated (2.0!)
- Create new branch name build-x.x.x (x = version)
- Open Vue UI and Serve to make sure App is still running properly
- Go to Build and 'Run Task'
- Delete 'src' and 'public' folders
- Delete 'babel.config.js', 'package-lock.json', and package.json files
- Move all files in 'dist' folder outside to top folder
- Delete 'dist' folder when it has been emptied
- Add the following code below the title in index.html
<!-- place under title -->
<script>
(function (l) {
if (l.search[1] === "/") {
var decoded = l.search
.slice(1)
.split("&")
.map(function (s) {
return s.replace(/~and~/g, "&");
})
.join("?");
window.history.replaceState(
null,
null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
})(window.location);
</script>
- Push the build branch
- Go to 'Pages' in GitHub Settings and select the new branch in the dropdown under 'Branch' in 'Build and deployment'