Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--watch does not watch if given a .css source file #806

Closed
EricBanker12 opened this issue Aug 24, 2019 · 0 comments · Fixed by #814
Closed

--watch does not watch if given a .css source file #806

EricBanker12 opened this issue Aug 24, 2019 · 0 comments · Fixed by #814
Labels

Comments

@EricBanker12
Copy link

The issue

Sass watcher will not detect changes if given a .css source file. If the output file does not exist or differs to the compiled source, it will be compiled immediately after running the command, but further changes to the source file will not trigger new compiles. When using a .scss source file, further changes do trigger new compiles as expected.

Examples

with .css source file:

sass --watch --style=compressed test.css test.min.css
Compiled test.css to test.min.css.
Sass is watching for changes. Press Ctrl-C to stop.

with .scss source file:

sass --watch --style=compressed test.scss test.min.css
Compiled test.scss to test.min.css.
Sass is watching for changes. Press Ctrl-C to stop.

Compiled test.scss to test.min.css.

In both examples, the initial content of test.css and test.scss is:

.test {
    font-family: 'Hello World!';
}

Changes were induced by altering the Hello World! string and saving.

Setup

OS: Windows 10
Command Line: Git Bash (2.22.0.windows.1) with mintty (3.0.2) terminal
Sass installation: npm i --global sass
Sass version: 1.22.10 compiled with dart2js 2.4.1

@nex3 nex3 added the bug label Aug 28, 2019
nex3 added a commit that referenced this issue Aug 30, 2019
@nex3 nex3 closed this as completed in #814 Sep 3, 2019
nex3 added a commit that referenced this issue Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants