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
aac339e6
Commit
aac339e6
authored
Sep 08, 2015
by
dotzero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLI: add --follow option
parent
edbf4972
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
README.md
README.md
+1
-0
node-sass
bin/node-sass
+3
-1
No files found.
README.md
View file @
aac339e6
...
@@ -496,6 +496,7 @@ Output will be saved with the same name as input Sass file into the current work
...
@@ -496,6 +496,7 @@ Output will be saved with the same name as input Sass file into the current work
--source-map-embed Embed sourceMappingUrl as data URI
--source-map-embed Embed sourceMappingUrl as data URI
--source-map-root Base path, will be emitted in source-map as is
--source-map-root Base path, will be emitted in source-map as is
--include-path Path to look for imported files
--include-path Path to look for imported files
--follow Follow symlinked directories
--precision The amount of precision allowed in decimal numbers
--precision The amount of precision allowed in decimal numbers
--importer Path to .js file containing custom importer
--importer Path to .js file containing custom importer
--functions Path to .js file containing custom functions
--functions Path to .js file containing custom functions
...
...
bin/node-sass
View file @
aac339e6
...
@@ -46,6 +46,7 @@ var cli = meow({
...
@@ -46,6 +46,7 @@ var cli = meow({
' --source-map-embed Embed sourceMappingUrl as data URI'
,
' --source-map-embed Embed sourceMappingUrl as data URI'
,
' --source-map-root Base path, will be emitted in source-map as is'
,
' --source-map-root Base path, will be emitted in source-map as is'
,
' --include-path Path to look for imported files'
,
' --include-path Path to look for imported files'
,
' --follow Follow symlinked directories'
,
' --precision The amount of precision allowed in decimal numbers'
,
' --precision The amount of precision allowed in decimal numbers'
,
' --importer Path to .js file containing custom importer'
,
' --importer Path to .js file containing custom importer'
,
' --functions Path to .js file containing custom functions'
,
' --functions Path to .js file containing custom functions'
,
...
@@ -54,6 +55,7 @@ var cli = meow({
...
@@ -54,6 +55,7 @@ var cli = meow({
},
{
},
{
boolean
:
[
boolean
:
[
'indented-syntax'
,
'indented-syntax'
,
'follow'
,
'omit-source-map-url'
,
'omit-source-map-url'
,
'quiet'
,
'quiet'
,
'recursive'
,
'recursive'
,
...
@@ -331,7 +333,7 @@ function renderFile(file, options, emitter) {
...
@@ -331,7 +333,7 @@ function renderFile(file, options, emitter) {
*/
*/
function
renderDir
(
options
,
emitter
)
{
function
renderDir
(
options
,
emitter
)
{
var
globPath
=
path
.
resolve
(
options
.
directory
,
globPattern
(
options
));
var
globPath
=
path
.
resolve
(
options
.
directory
,
globPattern
(
options
));
glob
(
globPath
,
{
ignore
:
'**/_*'
},
function
(
err
,
files
)
{
glob
(
globPath
,
{
ignore
:
'**/_*'
,
follow
:
options
.
follow
},
function
(
err
,
files
)
{
if
(
err
)
{
if
(
err
)
{
return
emitter
.
emit
(
'error'
,
util
.
format
(
'You do not have permission to access this path: %s.'
,
err
.
path
));
return
emitter
.
emit
(
'error'
,
util
.
format
(
'You do not have permission to access this path: %s.'
,
err
.
path
));
}
else
if
(
!
files
.
length
)
{
}
else
if
(
!
files
.
length
)
{
...
...
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