Skip to content

Commit

Permalink
Add dist folder before build
Browse files Browse the repository at this point in the history
  • Loading branch information
salmoro committed Jun 8, 2023
1 parent 9913f6d commit eb4c253
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ async function generateBundle() {
console.log(new Date().toString());
}

if (!fs.existsSync('dist')) {
fs.mkdirSync('dist');
}

const bundle = await rollup.rollup({
cache,
input: 'src/player.js',
Expand Down

0 comments on commit eb4c253

Please sign in to comment.