michaelwayman / node-sass-chokidar

A thin wrapper around node-sass to replicate the --watch using chokidar instead of Gaze
MIT License
291 stars 34 forks source link

Add parameter for setting "interval of polling" for Chokidar #53

Closed xxDukeMCxx closed 6 years ago

xxDukeMCxx commented 6 years ago

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,

michaelwayman commented 6 years ago

sure

michaelwayman commented 6 years ago

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