Skip to content

Commit 8141804

Browse files
authored
Merge pull request #33 from Nuxify/bugfix/chunk-error
fix: chunk error, document changes
2 parents 577a1b8 + 965796e commit 8141804

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

README.md

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
A minimalistic Nuxt Jamstack starter template using TypeScript, Vuetify, and API Repository Pattern. JAKS!
44

5-
 
6-
75
## Installation
86

97
```
@@ -42,14 +40,12 @@ cd dist/
4240
npx serve
4341
```
4442

45-
 
43+
## License
44+
45+
[MIT](https://choosealicense.com/licenses/mit/)
4646

4747
## Contributing
4848

4949
Made with ❤️ at [Nuxify](https://nuxify.tech)
5050

51-
 
5251

53-
## License
54-
55-
[MIT](https://choosealicense.com/licenses/mit/)

nuxt.config.js

+18
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,24 @@ export default {
6161
href: 'https://fonts.googleapis.com/css?family=Poppins&display=swap',
6262
},
6363
],
64+
script: [
65+
{
66+
type: 'text/javascript',
67+
innerHTML: `
68+
window.onerror = function(msg, url, line, col, error) {
69+
if (
70+
msg === 'SyntaxError' &&
71+
error === "Loading chunk failed" &&
72+
!window.location.hash
73+
) {
74+
window.location = window.location + '#refresh'
75+
window.location.reload()
76+
}
77+
}
78+
`,
79+
defer: true,
80+
},
81+
],
6482
},
6583
/*
6684
** Customize the progress-bar color

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jak.ts",
33
"version": "1.0.0",
44
"description": "A minimalistic Nuxt Jamstack starter template using TypeScript, Vuetify, and API Repository Pattern. Jaks!",
5-
"author": "Karl Anthony Baluyot",
5+
"author": "Nuxify Inc.",
66
"private": true,
77
"scripts": {
88
"dev": "nuxt",

0 commit comments

Comments
 (0)