mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: syntax error in generator.js
This commit is contained in:
parent
d787ab4e0a
commit
f5acb6fc0e
@ -74,7 +74,7 @@ export default class Generator extends Tapable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const indexPath = join(this.distPath, 'index.html')
|
const indexPath = join(this.distPath, 'index.html')
|
||||||
if (existsSync(indexPath) {
|
if (existsSync(indexPath)) {
|
||||||
// Copy /index.html to /200.html for surge SPA
|
// Copy /index.html to /200.html for surge SPA
|
||||||
// https://surge.sh/help/adding-a-200-page-for-client-side-routing
|
// https://surge.sh/help/adding-a-200-page-for-client-side-routing
|
||||||
const _200Path = join(this.distPath, '200.html')
|
const _200Path = join(this.distPath, '200.html')
|
||||||
|
Loading…
Reference in New Issue
Block a user