Skip to content

Instantly share code, notes, and snippets.

@evdama
Created July 13, 2019 05:39
Show Gist options
  • Select an option

  • Save evdama/8ce13d12758f8cedcc1493fee341f166 to your computer and use it in GitHub Desktop.

Select an option

Save evdama/8ce13d12758f8cedcc1493fee341f166 to your computer and use it in GitHub Desktop.
used to copy/move the build __sapper__ folder into functions directory
const fs = require('fs-extra');
fs.remove('./functions/__sapper__').then(() => {
console.log('copying build folder to functions')
fs.copySync('./__sapper__', './functions/__sapper__');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment