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

node-sass will watch "css" files in directory mode #2624

Closed
hangoocn opened this issue Apr 9, 2019 · 1 comment
Closed

node-sass will watch "css" files in directory mode #2624

hangoocn opened this issue Apr 9, 2019 · 1 comment

Comments

@hangoocn
Copy link

hangoocn commented Apr 9, 2019

Say I have test.css, then in same directory, I run
node-sass -w ./ -o ./ (Watch files in directory)
It will watch changes in test.css and this only happens in watch mode.

But non-watch mode node-sass ./ -o ./ will give No input file was found. , which is as expected.

That is to say, node-sass will also watch all generated css files from sass/scss files in directory mode.

Is this a bug or by design?

  • NPM version (npm -v): 6.9.0
  • Node version (node -v): v10.15.0
  • Node Process (node -p process.versions):
    { http_parser: '2.8.0',
    node: '10.15.0',
    v8: '6.8.275.32-node.45',
    uv: '1.23.2',
    zlib: '1.2.11',
    ares: '1.15.0',
    modules: '64',
    nghttp2: '1.34.0',
    napi: '3',
    openssl: '1.1.0j',
    icu: '62.1',
    unicode: '11.0',
    cldr: '33.1',
    tz: '2018e' }
  • Node Platform (node -p process.platform):win32
  • Node architecture (node -p process.arch):x64
  • node-sass version (node -p "require('node-sass').info"): Cannot find module 'node-sass'
  • npm node-sass versions (npm ls node-sass): 4.11.0
@saper
Copy link
Member

saper commented Oct 17, 2019

There is a need for a breaking change for that, you may follow #2111 for details

See sass/libsass#2611
See #2184
See #2006
See #1933
See #1925
See #1867
See #1845

@saper saper closed this as completed Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants