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
71b14468
Commit
71b14468
authored
Nov 08, 2016
by
Marvin Hagemeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add descendent files to watched files
Fixes #1731
parent
2882d6b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
node-sass
bin/node-sass
+8
-0
No files found.
bin/node-sass
View file @
71b14468
...
@@ -266,9 +266,17 @@ function watch(options, emitter) {
...
@@ -266,9 +266,17 @@ function watch(options, emitter) {
gaze
.
on
(
'changed'
,
function
(
file
)
{
gaze
.
on
(
'changed'
,
function
(
file
)
{
var
files
=
[
file
];
var
files
=
[
file
];
// descendents may be added, so we need a new graph
graph
=
buildGraph
(
options
);
graph
.
visitAncestors
(
file
,
function
(
parent
)
{
graph
.
visitAncestors
(
file
,
function
(
parent
)
{
files
.
push
(
parent
);
files
.
push
(
parent
);
});
});
// Add children to watcher
graph
.
visitDescendents
(
file
,
function
(
child
)
{
gaze
.
add
(
child
);
});
files
.
forEach
(
function
(
file
)
{
files
.
forEach
(
function
(
file
)
{
if
(
path
.
basename
(
file
)[
0
]
!==
'_'
)
{
if
(
path
.
basename
(
file
)[
0
]
!==
'_'
)
{
renderFile
(
file
,
options
,
emitter
);
renderFile
(
file
,
options
,
emitter
);
...
...
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