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
80a470c4
Commit
80a470c4
authored
Dec 26, 2014
by
Adeel Mujahid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README: Fixes (and reduces) code indentation.
parent
ca600f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
README.md
README.md
+8
-8
No files found.
README.md
View file @
80a470c4
...
...
@@ -46,8 +46,8 @@ sass.render({
});
// OR
var
result
=
sass
.
renderSync
({
data
:
scss_content
[,
options
..]
data
:
scss_content
[,
options
..]
});
```
...
...
@@ -109,16 +109,16 @@ The API for using node-sass has changed, so that now there is only one variable
```
javascript
var
sass
=
require
(
'node-sass'
);
sass
.
render
({
file
:
'/path/to/myFile.scss'
,
file
:
'/path/to/myFile.scss'
,
data
:
'body{background:blue; a{color:black;}}'
,
success
:
function
(
result
)
{
// result is an object: v2 change
console
.
log
(
result
.
css
);
console
.
log
(
result
.
stats
);
console
.
log
(
result
.
map
)
console
.
log
(
result
.
css
);
console
.
log
(
result
.
stats
);
console
.
log
(
result
.
map
)
},
error
:
function
(
error
)
{
// error is an object: v2 change
// error is an object: v2 change
console
.
log
(
error
.
message
);
console
.
log
(
error
.
code
);
},
...
...
@@ -141,7 +141,7 @@ sass.render({
});
// OR
var
result
=
sass
.
renderSync
({
file
:
'/path/to/file.scss'
,
file
:
'/path/to/file.scss'
,
data
:
'body{background:blue; a{color:black;}}'
,
outputStyle
:
'compressed'
,
outFile
:
'/to/my/output.css'
,
...
...
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