This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,15 +204,15 @@ function getOptions(args, options) {
204204 options . sourceMapOriginal = options . sourceMap ;
205205 }
206206
207- // check if sourceMap path ends with .map to avoid isDirectory false-positive
208- var sourceMapIsDirectory = options . sourceMapOriginal . indexOf ( '.map' , options . sourceMapOriginal . length - 4 ) === - 1 && isDirectory ( options . sourceMapOriginal ) ;
209-
210207 if ( options . sourceMapOriginal === 'true' ) {
211208 options . sourceMap = options . dest + '.map' ;
212- } else if ( ! sourceMapIsDirectory ) {
213- options . sourceMap = path . resolve ( options . sourceMapOriginal ) ;
214- } else if ( sourceMapIsDirectory ) {
215- if ( ! options . directory ) {
209+ } else {
210+ // check if sourceMap path ends with .map to avoid isDirectory false-positive
211+ var sourceMapIsDirectory = options . sourceMapOriginal . indexOf ( '.map' , options . sourceMapOriginal . length - 4 ) === - 1 && isDirectory ( options . sourceMapOriginal ) ;
212+
213+ if ( ! sourceMapIsDirectory ) {
214+ options . sourceMap = path . resolve ( options . sourceMapOriginal ) ;
215+ } else if ( ! options . directory ) {
216216 options . sourceMap = path . resolve ( options . sourceMapOriginal , path . basename ( options . dest ) + '.map' ) ;
217217 } else {
218218 sassDir = path . resolve ( options . directory ) ;
You can’t perform that action at this time.
0 commit comments