Closed ychailler closed 5 years ago
Do I understand this correctly that node-sass-once-importer
does not work but node-sass-magic-importer
does work correctly?
no it is the opposite: it works with node-sass-magic-importer
but not with node-sass-once-importer
That's exactly what i wrote 😅
I'll take a look into it. Thanks for reporting.
node-sass-once-importer@5.3.1
should work as expected. Thanks again for reporting this :)
The context
nodeSassOnceImporterContext
created in each importer refers to the same store created in thecontextTemplate
object. When using webpack-dev-server and the watch feature, the resulted file generated after the first code modification become empty as all imports are already stored in the store.The behaviour is different from the node-sass-magic-importer where the store is created for each importer. In that case it works fine