create dist folders in build script

This commit is contained in:
Philipp Kühn 2018-08-29 22:28:50 +02:00
parent 42825f4798
commit 33575c0856

View File

@ -60,6 +60,12 @@ function build(builds) {
let built = 0
const total = builds.length
const next = () => {
const distPath = path.dirname(builds[built].output.file)
if (!fs.existsSync(distPath)) {
fs.mkdirSync(distPath)
}
buildEntry(builds[built]).then(() => {
built++
if (built < total) {