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
f9564761
Commit
f9564761
authored
Mar 21, 2015
by
Adeel Mujahid
Committed by
Adeel
Mar 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README: Minor fixes.
parent
8c641f4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
README.md
README.md
+8
-4
No files found.
README.md
View file @
f9564761
...
...
@@ -87,7 +87,7 @@ When returning or calling `done()` with `{ file: "String" }`, the new file path
When returning or calling
`done()`
with
`{ contents: "String" }`
, the string value will be used as if the file was read in through an external source.
`this`
refers to a contextual scope for the immediate run of
`sass.render`
or
`sass.renderSync`
Starting from v3.0.0,
`this`
refers to a contextual scope for the immediate run of
`sass.render`
or
`sass.renderSync`
### includePaths
Type:
`Array<String>`
...
...
@@ -197,17 +197,21 @@ sass.render({
},
includePaths
:
[
'lib/'
,
'mod/'
],
outputStyle
:
'compressed'
},
function
(
error
,
result
)
{
//
>= v3.0.0
},
function
(
error
,
result
)
{
//
node-style callback from v3.0.0 onwards
if
(
error
)
{
console
.
log
(
error
.
status
);
// use
"code" <= v3.0.0
console
.
log
(
error
.
status
);
// use
d to be "code" in v2x and below
console
.
log
(
error
.
column
);
console
.
log
(
error
.
message
);
console
.
log
(
error
.
line
);
}
else
{
console
.
log
(
result
.
css
.
toString
());
console
.
log
(
result
.
stats
);
console
.
log
(
result
.
map
.
toString
());
// or console.log(JSON.stringify(result.map));
console
.
log
(
result
.
map
.
toString
());
// or better
console
.
log
(
JSON
.
stringify
(
result
.
map
));
// note, JSON.stringify accepts Buffer too
}
});
// OR
...
...
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