wro4j icon indicating copy to clipboard operation
wro4j copied to clipboard

cssImport should support less import-once

Open bbergstrom opened this issue 12 years ago • 2 comments

http://lesscss.org/#-importing

Using these currently blows up with a Rhino error:

25-Feb-2013 13:21:22    78019 ERROR RhinoScriptBuilder   - JavaScriptException occured: Could not execute the script because: 
25-Feb-2013 13:21:22    {
25-Feb-2013 13:21:22      "type": "Parse",
25-Feb-2013 13:21:22      "message": "Syntax Error on line 6600",
25-Feb-2013 13:21:22      "index": 154928.0,
25-Feb-2013 13:21:22      "filename": null,
25-Feb-2013 13:21:22      "line": 6600.0,
25-Feb-2013 13:21:22      "column": 0.0,
25-Feb-2013 13:21:22      "extract": [
25-Feb-2013 13:21:22        "/* Using  */",
25-Feb-2013 13:21:22        "../../../lib/bootstrap/less/variables.less\";",
25-Feb-2013 13:21:22        "../../../lib/bootstrap/less/mixins.less\";"
25-Feb-2013 13:21:22      ]
25-Feb-2013 13:21:22    }

It would be great if the CssImportPreProcessor supported import-once in addition to import for better support for LessCSS features.

bbergstrom avatar Feb 25 '13 19:02 bbergstrom

Also, if Less file is brought in via group-ref in the model, the cssImport processor should be smart enough to not import a duplicate.

bbergstrom avatar Feb 25 '13 20:02 bbergstrom

please open a separate issue for your last request

alexo avatar Feb 26 '13 00:02 alexo