Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

lru-cache in style-rewriter prevents proper function with gulp-watch and postcss plugins #206

Open
teleclimber opened this issue Oct 5, 2017 · 0 comments

Comments

@teleclimber
Copy link

style-rewriter.js makes use of a lru cache to avoid reprocessing CSS unnecessarily.

Unfortunately if you use additional PostCSS plugins and you depend on gulp.watch or similar to re-process your files as needed the lru cache prevents recompilation when recompilation is necessary.

In my case I use postcss-mixins with the mixinsDir option. I have all my mixins in a separate directory. Unfortunately vuefiy is not aware of this mixin dir, therefore on re-runs of vueify triggered by gulp-watch, the cached version of the processed CSS gets returned if all I changed was a mixin.

I disabled the lru cache in my fork of vueify and this fixes the problem.

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

No branches or pull requests

1 participant