Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

-w only writes to the last path when multiple files import a changed partial #967

Closed
sndrs opened this issue May 18, 2015 · 0 comments · Fixed by #968
Closed

-w only writes to the last path when multiple files import a changed partial #967

sndrs opened this issue May 18, 2015 · 0 comments · Fixed by #968

Comments

@sndrs
Copy link

sndrs commented May 18, 2015

  • node-sass 3.1.1
  • OS X 10.10.3

Given the following files:

// _partial.scss
p {
    color: red;
}
// stylesheet-1.scss
@import 'partial';
// stylesheet-2.scss
@import 'partial';

then the dir contains the following:

$ ls
./
../
_partial.scss
stylesheet-1.scss
stylesheet-2.scss

Watch the directory...

$ node-sass -w ./ -o ./

...then save _partial.scss and the following happens:

=> changed: stylesheet-1.scss
=> changed: stylesheet-2.scss
Rendering Complete, saving .css file...
Rendering Complete, saving .css file...
Wrote CSS to stylesheet-2.css
Wrote CSS to stylesheet-2.css

The dir contains:

$ ls
./
../
_partial.scss
stylesheet-1.scss
stylesheet-2.css
stylesheet-2.scss
@xzyfer xzyfer added this to the next.patch milestone May 20, 2015
@xzyfer xzyfer mentioned this issue May 20, 2015
@xzyfer xzyfer modified the milestones: next.patch, v3.1.2 Jun 10, 2015
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
2 participants