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
8f893cbf
Commit
8f893cbf
authored
Oct 31, 2014
by
Kevin Martensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks
parent
3b2c4954
Show 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 @
8f893cbf
...
...
@@ -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