-
Notifications
You must be signed in to change notification settings - Fork 51
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
Caching does not work #15
Comments
From the
So, seems like the whole input tree is re-processed, if even only one file changes. |
I submitted an issue in I believe that caching files individually is probably out of scope and we will have to find an alternative or ship our own. I added the |
We can probably use
|
Random (possibly crazy) thought, we're currently compiling n:1 which means we don't get the caching for free, could we compile 1:1 instead? Maybe instead of compiling down to the one registry file, we compile a JS file per SVG which exports the SVG string:
Then in the helper we can do something similar to ember-load-initializers to require the SVG as needed. |
When processing huge or lots of
.svg
files, the build time gets extremely slow with the default configuration. The problem vanishes, when the optimization is disabled:optimize: false
This has two possible causes:
svgo
is enabled, the caching doesn't work properly.Expected behaviour: Each
.svg
file is tracked individually and only re-processed, if it actually changes.I will look into this. Originally reported in #14.
The text was updated successfully, but these errors were encountered: