mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-29 12:46:32 +03:00
exist with failure if no js output is generated fromt he elm-compiler
This commit is contained in:
parent
94ba9d6898
commit
4bfe4834e2
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user