michaelwayman / node-sass-chokidar

A thin wrapper around node-sass to replicate the --watch using chokidar instead of Gaze

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add parameter for setting "interval of polling" for Chokidar

xxDukeMCxx opened this issue · comments

Hi,

For better compatibilty with some text editor (see #22 and #14 ), could you add the possiblity of setting by parameter the interval of polling for Chokidar ?

Exemple :
image

Currently, it seem's that only thoses 3 parameters can be transfert from node-saas-chokidar to the chokidar watcher :
image


optionnaly/alternatively , cause my issue is with React, perhaps add the dotenv support so node-sass-chokidar can automatically "usePolling" when the React project is set to "usePolling" from .env configuration ( https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration )

i try it loccaly by just add the
require('dotenv').config();
at beggining of your script, and it work well, so i can set usePolling AND interval by a simple .env file :
image

thanks for all,
bests regards,

ok this should be fixed in db94130 and in node-sass-chokidar@1.3