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

Watch flag not creating file when first run #1660

Closed
gunnx opened this issue Aug 10, 2016 · 5 comments
Closed

Watch flag not creating file when first run #1660

gunnx opened this issue Aug 10, 2016 · 5 comments

Comments

@gunnx
Copy link

gunnx commented Aug 10, 2016

When I add the flag --watch the output file/sourcemap is not created until I make a change, is this expected behaviour? I was assuming it would generate the file first then watch for changes.

my command
node-sass --source-map true --watch --output-style expanded ./src/main.scss ./dist/core.css

node-sass v3.8.0

@xzyfer
Copy link
Contributor

xzyfer commented Aug 10, 2016

This is the intended behaviour. Remove the watch flag compilation. There is no way to please every body here so this is the we've settled on.

@xzyfer xzyfer closed this as completed Aug 10, 2016
@saper
Copy link
Member

saper commented Aug 14, 2016

@xzyfer I am not using gaze myself, can you remind me what would be the use case for --watch not creating files for a first time?

@xzyfer
Copy link
Contributor

xzyfer commented Aug 15, 2016

@saper it's purely a usability this. We used to build on watch which resulted the complaints. Being two discrete operations gives the user more control of their work flow. It also allows for better integration with build tools like gulp if someone wanted to use node-sass's smart watcher.

@rinatio
Copy link

rinatio commented Feb 11, 2018

Did you consider having a value for --watch flag? --watch=force for example. Writing here, because #1742 is closed.

@mangelozzi
Copy link

I was confused cause I expected --update --watch to perform the current default behaviour, and just --watch to compile once at startup and then watch, then everyone is happy! Yay!

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Use NULL instead of 0 where it's ambiguous
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants