You can set options by setting things on a global LESS object before the script:
<!-- set options before less.js script -->
<script>
less = {
env: "development",
async: false,
fileAsync: false,
/** | |
* Relative path | |
* Returns the derived relative path from one to the other. | |
* | |
* Usage: | |
* {{relative from to}} | |
*/ | |
Handlebars.registerHelper('relative', function(from, to) { | |
var relativePath = path.relative(from, to); |
We can move those options into an external JSON file, .recessrc
, like this:
{
"compile": true,
"compress": false,
"noIDs": true,
"noJSPrefix": true,
"noOverqualifying": true,
"noUnderscores": true,
"noUniversalSelectors": true,
{ | |
"compile": false, | |
"compress": false, | |
"noIDs": true, | |
"noJSPrefix": true, | |
"noOverqualifying": true, | |
"noUnderscores": true, | |
"noUniversalSelectors": true, | |
"zeroUnits": true, | |
"strictPropertyOrder": true, |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Monokai Soda</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
/** | |
* See https://github.com/sellside/pre | |
*/ | |
/** | |
* References/todos: | |
* http://www.lemoda.net/javascript/dump-dom/dump-dom.html | |
* http://www.howtocreate.co.uk/tutorials/javascript/dombasics | |
* Use treewalker or nodefilter?? | |
* https://developer.mozilla.org/en-US/docs/DOM/NodeFilter |
Directory structure | |
SubModule/ | |
css/ | |
... | |
js/ | |
... | |
images/ | |
... |