michaelwayman / node-sass-chokidar

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

How to use chokidar with webpack loader ? #80

Open ylacaute opened 5 years ago

ylacaute commented 5 years ago

Hi, I am trying to use chokidar without CLI but it is not working :

{
  loader: "sass-loader",
  options: {
    implementation: require("node-sass-chokidar")
  }
}

Error : Cannot find module 'node-sass-chokidar' Package.json : "node-sass-chokidar": "^1.3.4"

With classic "node-sass" it is working :

{
  loader: "sass-loader",
  options: {
    implementation: require("node-sass")
  }
}

Is that the expected behavior ?