Skip to content

Commit

Permalink
remove if check and better separation
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Aug 21, 2021
1 parent 9ed22d6 commit e9312e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/adapter-static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ export default function ({ pages = 'build', assets = pages, fallback } = {}) {
name: '@sveltejs/adapter-static',

async adapt({ utils }) {
if (assets !== pages) utils.rimraf(assets);
utils.rimraf(assets);
utils.rimraf(pages);

utils.copy_static_files(assets);
utils.copy_client_files(assets);

Expand Down

0 comments on commit e9312e2

Please sign in to comment.