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

assets: enable less source maps #2923

Closed
1 of 3 tasks
jmartinm opened this issue Mar 24, 2015 · 11 comments
Closed
1 of 3 tasks

assets: enable less source maps #2923

jmartinm opened this issue Mar 24, 2015 · 11 comments

Comments

@jmartinm
Copy link
Member

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 a less 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

I 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?

@jirikuncar jirikuncar added the RFC label Mar 24, 2015
@jirikuncar jirikuncar added this to the v2.x milestone Mar 24, 2015
@jirikuncar jirikuncar changed the title RFC drop LESS_RUN_IN_DEBUG support RFC assets: drop LESS_RUN_IN_DEBUG support Mar 24, 2015
@jacquerie
Copy link
Contributor

+1 on all three points (is that a +3?). Even the author of less.js agrees on client side compilation: less/less.js#1541 (comment).

@lnielsen
Copy link
Member

Personally I never used LESS_RUN_IN_DEBUG=True so I'm fine with the change if it implies the code.

@jirikuncar
Copy link
Member

@drjova @egabancho can we proceed with removing support for LESS_RUN_IN_DEBUG in 2.1?

@drjova
Copy link
Member

drjova commented Mar 24, 2015

👍

@jirikuncar jirikuncar modified the milestones: v2.1, v2.x Mar 24, 2015
jirikuncar added a commit to jirikuncar/invenio that referenced this issue Mar 24, 2015
* NOTE Adds deprecation warning when LESS_RUN_IN_DEBUG is used.
  (addresses inveniosoftware#2923)

Signed-off-by: Jiri Kuncar <[email protected]>
@tiborsimko
Copy link
Member

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.

@jirikuncar jirikuncar changed the title RFC assets: drop LESS_RUN_IN_DEBUG support assets: drop LESS_RUN_IN_DEBUG support Mar 26, 2015
@jirikuncar
Copy link
Member

@jmartinm you can proceed with removing the support for LESS_RUN_IN_DEBUG.

@jmartinm
Copy link
Member Author

Sure, so shall I close this RFC and create 3 issues with the 3 bullet points proposed at the beginning?

@jirikuncar
Copy link
Member

@jmartinm we can keep this issue open and you just address this issue in new commits.

@jmartinm
Copy link
Member Author

👍

jirikuncar added a commit to jirikuncar/invenio that referenced this issue Apr 10, 2015
* 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]>
jirikuncar added a commit to jirikuncar/invenio that referenced this issue Apr 10, 2015
* 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]>
jirikuncar added a commit to jirikuncar/invenio that referenced this issue Apr 13, 2015
* 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]>
@jirikuncar jirikuncar changed the title assets: drop LESS_RUN_IN_DEBUG support assets: enable less source maps Apr 13, 2015
@jirikuncar jirikuncar modified the milestones: v2.x, v2.1 Apr 24, 2015
tiborsimko added a commit to tiborsimko/invenio that referenced this issue Jun 16, 2015
* 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]>
@joelharkes
Copy link

You're doing great work guys! any idea when we can expect this feature to be released?

@lnielsen
Copy link
Member

lnielsen commented Jun 2, 2016

@joelharkes This has been superseded by https://github.com/inveniosoftware/invenio-theme which now uses Sass instead of Less.

@lnielsen lnielsen closed this as completed Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants