-
Notifications
You must be signed in to change notification settings - Fork 292
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
assets: enable less source maps #2923
Comments
+1 on all three points (is that a +3?). Even the author of |
Personally I never used |
@drjova @egabancho can we proceed with removing support for |
👍 |
* NOTE Adds deprecation warning when LESS_RUN_IN_DEBUG is used. (addresses inveniosoftware#2923) Signed-off-by: Jiri Kuncar <[email protected]>
For better tracking, we should probably close this RFC now as agreed upon, and open a new task to implement the removal with a concrete future milestone. |
@jmartinm you can proceed with removing the support for |
Sure, so shall I close this RFC and create 3 issues with the 3 bullet points proposed at the beginning? |
@jmartinm we can keep this issue open and you just address this issue in new commits. |
👍 |
* INCOMPATIBILITY Removes support for runtime compiling of less files in debug mode when option LESS_RUN_IN_DEBUG is enabled. (addresses inveniosoftware#2923) Co-authored-by: Jiri Kuncar <[email protected]>
* INCOMPATIBILITY Removes support for runtime compiling of less files in debug mode when option LESS_RUN_IN_DEBUG is enabled. (addresses inveniosoftware#2923) Co-authored-by: Jiri Kuncar <[email protected]>
* INCOMPATIBILITY Removes support for runtime compiling of less files in debug mode when option LESS_RUN_IN_DEBUG is enabled. (addresses inveniosoftware#2923) Co-authored-by: Jiri Kuncar <[email protected]>
* INCOMPATIBLE Removes support for runtime compiling of less files in debug mode when option LESS_RUN_IN_DEBUG is enabled. (addresses inveniosoftware#2923) * AMENDS 38c12d5 Signed-off-by: Tibor Simko <[email protected]>
You're doing great work guys! any idea when we can expect this feature to be released? |
@joelharkes This has been superseded by https://github.com/inveniosoftware/invenio-theme which now uses Sass instead of Less. |
Following up on #2921 I have come to the conclusion that our extension code could be simplified by dropping support for
LESS_RUN_IN_DEBUG
.This would avoid, for instance, the following 'hack' that needed to be introduced https://github.com/inveniosoftware/invenio/pull/2922/files#diff-dc717d85d0b109c334416b4b5a305f8cR136
What this variable does is enabling compilation of less files in the browser http://lesscss.org/#client-side-usage
But this does not offer any advantage as far as I can see.
By default
webassets
will do the right thing and if aless
file on a Bundle is modified, upon page refresh, the bundle is recompiled and changes are visible immediately. If there are no changes then no compilation happens.This is a WIP branch where I show what the change would be jmartinm@5fdd9c0
Proposal
depends=
parameter used, for example, here so that we can have imports in theless
code like here and a change on any of the dependent files will trigger recompilation ofless
. This is currently not happening, likely due to something missing in our custom resolverI think this would make working with
less
nice while simplifying our code.What do you think? Anybody using
less.js
in the browser? Or there is a good reason for keeping it that I am missing?The text was updated successfully, but these errors were encountered: