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
8b2b2c4f
Commit
8b2b2c4f
authored
Jan 02, 2014
by
Dean Mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix sass.js for build
parent
7eeba5e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
sass.js
sass.js
+11
-6
No files found.
sass.js
View file @
8b2b2c4f
var
binding
;
var
fs
=
require
(
'fs'
);
var
path
=
require
(
'path'
);
var
v8
=
'v8-'
+
/
[
0-9
]
+
\.[
0-9
]
+/
.
exec
(
process
.
versions
.
v8
)[
0
];
var
modPath
=
path
.
join
(
__dirname
,
'bin'
,
process
.
platform
+
'-'
+
process
.
arch
+
'-'
+
v8
,
'binding'
);
try
{
if
(
fs
.
realpathSync
(
__dirname
+
'/build'
))
{
// use the build version if it exists
binding
=
require
(
__dirname
+
'/build/Release/binding'
);
}
}
catch
(
e
)
{
// default to a precompiled binary if no build exists
var
platform_full
=
process
.
platform
+
'-'
+
process
.
arch
;
binding
=
require
(
__dirname
+
'/precompiled/'
+
platform_full
+
'/binding'
);
}
if
(
binding
===
null
)
{
throw
new
Error
(
'Cannot find appropriate binary library for node-sass'
);
try
{
fs
.
realpathSync
(
modPath
+
'.node'
);
binding
=
require
(
modPath
);
}
catch
(
ex
)
{
// No binary!
throw
new
Error
(
'`'
+
modPath
+
'.node` is missing. Try reinstalling `node-sass`?'
);
}
}
var
SASS_OUTPUT_STYLE
=
{
...
...
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