Skip to content

Commit

Permalink
fix(cli): use outDir when no outFile is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Jan 8, 2023
1 parent 2d5087f commit ecefacf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/commands/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ export function cliBuild( params ) {
if (typeof file === 'string') {
logger.silly( 'cli > build', '--file is string.' );
logger.silly( 'cli > build', 'Attempting to build...' );

if ( outFile !== undefined ) {
sassBuild( file, outFile );
} else {
sassBuildFiles( [ file ] );
sassBuildFiles( [ file ], <OutputOptions> { path: outDir } );
}
logger.silly( 'cli > build', 'Build successful.' );
}
Expand Down

0 comments on commit ecefacf

Please sign in to comment.