-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Automatically clean static content css files when source less files change #16
Comments
On second thought, automatically cleaning |
How about a |
I like having the option, and I also think that all static content should cleared from |
Why not comparing the mtime of the files and only delete the static ones if they are older than the source files? |
In case of LESS it's not straight forward to map static files to source files. |
@JosephLeedy JS and UI template changes not showing up immediately usually is related to the browser cache being active. |
Since quite a few 👍 have been added to this issue, I think it's time to implement it with a command line switch to turn it on. |
I must admit that I have been quite successfully in avoiding frontend related work that involves theming… Maybe someone who has some more experience can help me out. Is there a way to know easily which |
After some discussion, it seems the answer is that the only way to know that would be to do static analysis to build the import tree, and I don't want to that. |
Thoughts on naming: ideally the name for the command line switch could cover more static assets than just
|
I think that “—watch-less” would suffice.
|
If the only option is to delete all *.css files I think it still helps people who do not use the grunt process. Still it's painfully slow as the php less compiler is not very performant. If it doesn't take too much time to implement a POC I'd say: go for it and we'll test. |
I was just looking for this one as well. But it should be possible to enable it manually like already discussed here.
Same applies for less, css, or whatever. Since I'm currently flushing static content area for frontend I choosed that name. 🙂 |
Hi @Vinai, is there any news about this feature? |
@DanieliMi No news currently. Since Luma is dying and neither Hyvä nor any of the other alternatives require less file compilation, I don't really feel like putting time into this. |
Implement cleaning of specific static content when files are changed.
First,
.less
file changes can trigger removal of the obsolete copy of the.less
file invar/view_preprocessed
and the generated.css
files inpub/static
.The second type of static files that could automatically be removed when a file is changed are the
js-translation.json
files. The browser local storage still would need to be cleaned manually, but at least the server side would be taken care of automatically.Related: Issue #15.
The text was updated successfully, but these errors were encountered: