I'm using a custom Sass importer that lets me import JavaScript/JSON files into my Sass. The issue I'm having is that when I save some JavaScript file that is being imported into my Sass, it doesn't trigger a hot-update/reload when using webpack-dev-server
.
If I import the file in question inside my main app's JavaScript as well, saving it works as expected (it will trigger a successful re-compile).
For some more context, I have a UI component that has an index.js
file. Inside this index.js
file I'm importing a Sass file. Inside this Sass file is where I'm importing my JavaScript file that doesn't trigger a reload when saving.
I'm not really sure if this is a Node-Sass issue or a Webpack issue but everything else is working as expected. I can import other Sass files into the main Sass file and saving those will trigger a hot-reload/update.