D
D
Dmitry Skryabin2013-12-03 14:30:26
JavaScript
Dmitry Skryabin, 2013-12-03 14:30:26

Is it possible (and how) to get LESS-compiled CSS in the browser via Javascript?

I'm using the latest version of LESS 1.5.0. On the page, I dynamically change the parameters using the less.modifyVars() method. Is there any way to get the final CSS compiled by less?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
papahoolio, 2013-12-03
@SkryabinD

less.js in localStorage stores the result of preprocessing

window.localStorage.getItem(protocol + '//' + host + pathToCss)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question