##// END OF EJS Templates
add instruction to pin lessc
Matthias BUSSONNIER -
Show More
@@ -41,9 +41,9 b' def _compile_less(source, target, minify=True, verbose=False):'
41 41 out = out.decode('utf8', 'replace')
42 42 less_version = out.split()[1]
43 43 if V(less_version) < V(min_less_version):
44 raise ValueError("lessc too old: %s < %s" % (less_version, min_less_version))
44 raise ValueError("lessc too old: %s < %s. Use `$ npm install lesscss@X.Y.Z` to install a specific version of less" % (less_version, min_less_version))
45 45 if V(less_version) >= V(max_less_version):
46 raise ValueError("lessc too new: %s >= %s" % (less_version, max_less_version))
46 raise ValueError("lessc too new: %s >= %s. Use `$ npm install lesscss@X.Y.Z` to install a specific version of less" % (less_version, max_less_version))
47 47
48 48 with lcd(static_dir):
49 49 local('lessc {min_flag} {ver_flag} {source} {target}'.format(**locals()))
General Comments 0
You need to be logged in to leave comments. Login now