Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importer caches files #21

Closed
LPGhatguy opened this issue Feb 22, 2016 · 1 comment
Closed

Importer caches files #21

LPGhatguy opened this issue Feb 22, 2016 · 1 comment

Comments

@LPGhatguy
Copy link
Contributor

This is only a problem when working with continuous rebuild systems like Gulp and Grunt.

node-sass-json-importer uses require to load JSON files, which caches results. The plugin should either:

  1. Not use require to load JSON (ideal)
  2. Clear the require cache entry for the JSON file on every load
@esr360
Copy link

esr360 commented May 24, 2017

Perhaps this is the issue I am experiencing right now...I have a setup similar to the following:

[module1
----[config.json
----[module1.scss
[module1
----[config.json
----[module2.scss

Which doesn't seem to work properly when using a continuous rebuild system. However, changing to the following seems to work:

[module1
----[module1.json
----[module1.scss
[module1
----[module2.json
----[module2.scss

However, ideally, I would like to stick with the first option if possible.

Is anyone able to confirm my issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants