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

Compilation loop when outputs in the same directory #1845

@milenon

Description

@milenon

Hi,

I'm starting node-sass from terminal with the following options:

> node-sass -w -r ./ -o ./

The problem is that when it compiles the changed .scss file and outputs it in the same folder it detects that the output .css file is changed and starts the compilation again and starts looping:

=> changed: D:_\my-project\css\login.component.scss
Rendering Complete, saving .css file...
Wrote CSS to D:_\my-project\css\login.component.css
=> changed: D:_\my-project\css\login.component.css
Rendering Complete, saving .css file...
Wrote CSS to D:_\my-project\css\login.component.css
=> changed: D:_\my-project\css\login.component.css
Rendering Complete, saving .css file...
Wrote CSS to D:_\my-project\css\login.component.css
=> changed: D:_\my-project\css\login.component.css
Rendering Complete, saving .css file...
Wrote CSS to D:_\my-project\css\login.component.css
=> changed: D:_\my-project\css\login.component.css
Rendering Complete, saving .css file...
Wrote CSS to D:_\my-project\css\login.component.css
...

Here are the environment details:

>node -p "require('node-sass').info"
node-sass       4.1.1   (Wrapper)       [JavaScript]
libsass         3.4.0   (Sass Compiler) [C/C++]
>npm -v
4.0.2
>node -v
v7.0.0

There were no such issues in version 3.11.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions