epegzz/sass-vars-loader

View on GitHub
src/utils/watchFileForChanges.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * watchFileForChanges
 *
 * Adds a file as loader dependency which will make Webpack watch
 * the file in watch-mode and reloads if it changes.
 */

module.exports = function(loader, file) {
  return loader.addDependency(file)
}