Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
187cfde2
Commit
187cfde2
authored
Nov 20, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code: Fixes condition is-output-path-relative.
Fixes #546.
parent
67ea9c58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.js
lib/index.js
+4
-4
No files found.
lib/index.js
View file @
187cfde2
...
...
@@ -36,11 +36,11 @@ function getOutFile(options) {
var
outFile
=
options
.
outFile
;
if
(
!
file
||
!
outFile
||
typeof
outFile
!==
'string'
||
typeof
file
!==
'string'
)
{
return
false
;
return
null
;
}
if
(
path
.
resolve
(
outFile
)
!==
path
.
normalize
(
outFile
).
replace
(
new
RegExp
(
path
.
sep
+
'$'
),
'
'
))
{
return
fals
e
;
if
(
path
.
resolve
(
outFile
)
===
path
.
normalize
(
outFile
).
replace
(
/
(
.+
)([\/
|
\\])
$/
,
'$1
'
))
{
return
outFil
e
;
}
return
path
.
resolve
(
path
.
dirname
(
file
),
outFile
);
...
...
@@ -135,7 +135,7 @@ function getOptions(options) {
options
.
data
=
options
.
data
||
null
;
options
.
file
=
options
.
file
||
null
;
options
.
imagePath
=
options
.
image_path
||
options
.
imagePath
||
''
;
options
.
outFile
=
getOutFile
(
options
)
||
null
;
options
.
outFile
=
getOutFile
(
options
);
options
.
paths
=
(
options
.
include_paths
||
options
.
includePaths
||
[]).
join
(
path
.
delimiter
);
options
.
precision
=
parseInt
(
options
.
precision
)
||
5
;
options
.
sourceMap
=
getSourceMap
(
options
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment