Skip to content

Commit

Permalink
feat: Added public asset dir handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JoLoZ authored and ozxybox committed Sep 24, 2023
1 parent 3f8da71 commit 9af5067
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/exporter/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export class Exporter {
step();
this.copyAssets();

step();
this.copyResources();

step();
this.templater.generateNav();

Expand Down Expand Up @@ -63,6 +66,12 @@ export class Exporter {

copyAssets() {
console.log('Copying assets...');
fs.mkdirSync('public/assets');
fs.copySync('../assets', 'public/assets');
}

copyResources() {
console.log('Copying resources...');
fs.copySync('static', 'public');
}

Expand Down

0 comments on commit 9af5067

Please sign in to comment.