Skip to content

Commit

Permalink
fix: fix copy favicon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EryouHao committed Jan 1, 2020
1 parent 76e42b3 commit 26093fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/renderer.ts
Expand Up @@ -612,7 +612,10 @@ export default class Renderer extends Model {
fse.copySync(urlJoin(this.appDir, 'static'), this.outputDir)

// Copy favicon.ico
fse.copyFileSync(urlJoin(this.appDir, 'favicon.ico'), urlJoin(this.outputDir, 'favicon.ico'))
const faviconInputPath = urlJoin(this.appDir, 'favicon.ico')
if (fse.existsSync(faviconInputPath)) {
fse.copyFileSync(faviconInputPath, urlJoin(this.outputDir, 'favicon.ico'))
}
}

async clearOutputFolder() {
Expand Down

0 comments on commit 26093fd

Please sign in to comment.