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
3619c1f9
Commit
3619c1f9
authored
Oct 31, 2014
by
Andrew Nesbitt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #501 from kevva/minor-fixes
Minor tweaks
parents
dd7f59fe
8f893cbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.js
lib/index.js
+5
-5
No files found.
lib/index.js
View file @
3619c1f9
...
...
@@ -110,7 +110,7 @@ function getStyle(options) {
function
getSourceMap
(
options
)
{
var
file
=
options
.
file
;
var
outFile
=
options
.
outFile
;
var
sourceMap
=
options
.
sourceMap
;
var
sourceMap
=
options
.
sourceMap
||
null
;
if
(
sourceMap
)
{
if
(
typeof
sourceMap
!==
'string'
)
{
...
...
@@ -275,7 +275,7 @@ module.exports.renderFile = function(options) {
var
success
=
options
.
success
;
if
(
options
.
sourceMap
===
true
)
{
options
.
sourceMap
=
o
ptions
.
o
utFile
+
'.map'
;
options
.
sourceMap
=
outFile
+
'.map'
;
}
options
.
success
=
function
(
css
,
sourceMap
)
{
...
...
@@ -285,10 +285,10 @@ module.exports.renderFile = function(options) {
}
if
(
!
options
.
sourceMap
)
{
return
success
(
o
ptions
.
o
utFile
);
return
success
(
outFile
);
}
var
dir
=
path
.
dirname
(
o
ptions
.
o
utFile
);
var
dir
=
path
.
dirname
(
outFile
);
var
sourceMapFile
=
path
.
resolve
(
dir
,
options
.
sourceMap
);
fs
.
writeFile
(
sourceMapFile
,
sourceMap
,
function
(
err
)
{
...
...
@@ -296,7 +296,7 @@ module.exports.renderFile = function(options) {
return
options
.
error
(
err
);
}
success
(
o
ptions
.
o
utFile
,
sourceMapFile
);
success
(
outFile
,
sourceMapFile
);
});
});
};
...
...
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