Created
July 13, 2019 05:39
-
-
Save evdama/8ce13d12758f8cedcc1493fee341f166 to your computer and use it in GitHub Desktop.
used to copy/move the build __sapper__ folder into functions directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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