MCPcopy Index your code
hub / github.com/CodeboxIDE/codebox / initRunningMode

Function initRunningMode

core/cb.addons/require-tools/less/lessc.js:6808–6825  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6806}
6807
6808function initRunningMode(){
6809 if (less.env === 'development') {
6810 less.optimization = 0;
6811 less.watchTimer = setInterval(function () {
6812 if (less.watchMode) {
6813 loadStyleSheets(function (e, root, _, sheet, env) {
6814 if (e) {
6815 error(e, sheet.href);
6816 } else if (root) {
6817 createCSS(root.toCSS(less), sheet, env.lastModified);
6818 }
6819 });
6820 }
6821 }, less.poll);
6822 } else {
6823 less.optimization = 3;
6824 }
6825}
6826
6827//
6828// Watch mode

Callers 1

lessc.jsFile · 0.85

Calls 3

loadStyleSheetsFunction · 0.85
createCSSFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected