exist with failure if no js output is generated fromt he elm-compiler

This commit is contained in:
mdgriffith 2020-10-25 15:33:12 -04:00
parent 94ba9d6898
commit 4bfe4834e2

View File

@ -47,6 +47,8 @@ async function run(inputFilePath: string | undefined) {
});
if (jsSource != '') {
console.log('Compiled, optimizing JS...');
} else {
process.exit(1)
}
} else {
console.error('Please provide a path to an Elm file.');