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 infinite loop #853

Closed
Sliverside opened this issue Oct 18, 2019 · 1 comment · Fixed by #862
Closed

--watch infinite loop #853

Sliverside opened this issue Oct 18, 2019 · 1 comment · Fixed by #862
Labels

Comments

@Sliverside
Copy link

hi,
i update my sass version to "1.23.0 compiled with dart2js 2.5.1" recently and my command for watch my files as un unexpected behavior.

the problem come from this : Fix a bug where changes in .css files would be ignored in --watch mode.

The problem happend when the input folder and the outpout folder are the same.
When my files *.scss are compiled that create files like *.css then sass detect these new files and watch it so it's creating an infinite loop.

My command is : sass --watch .:.

my solutions are :

  • create a command with all my files (exemple : sass --watch style.scss:style.css colors.scss:color.css anything.scss:anything.css ...) but it's not efficient
  • outpout my files in a diferent folder (exemple : sass --watch stylesheets:public/stylesheets) but it's changing my workflow

the changes that can be made :

Thank you for your time !
Sorry for my english.

@Sliverside Sliverside changed the title --watch --watch infinite loop Oct 18, 2019
@nex3 nex3 added the bug label Oct 19, 2019
@nex3
Copy link
Contributor

nex3 commented Oct 19, 2019

We should just avoid treating CSS files as entrypoints when their outputs would be the same as their inputs.

nex3 added a commit that referenced this issue Oct 25, 2019
This also adds support for compiling .css files in directories *at
all*, which had previously only worked in --watch mode.

Closes #853
@nex3 nex3 closed this as completed in #862 Oct 29, 2019
nex3 added a commit that referenced this issue Oct 29, 2019
This also adds support for compiling .css files in directories *at
all*, which had previously only worked in --watch mode.

Closes #853
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