Skip to content

Commit

Permalink
log adapter-static output directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 10, 2022
1 parent 2aafbe8 commit a42b187
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-mails-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-static': patch
---

Log adapter-static output directories
6 changes: 6 additions & 0 deletions packages/adapter-static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export default function ({ pages = 'build', assets = pages, fallback, precompres
await compress(pages);
}
}

if (pages === assets) {
builder.log(`Wrote site to "${pages}"`);
} else {
builder.log(`Wrote pages to "${pages}" and assets to "${assets}"`);
}
}
};
}
Expand Down

0 comments on commit a42b187

Please sign in to comment.