matehat/brewer.js — Issue #3: Problem with resolving LESS importation tree
Author: matehat
Created: 2012-02-18 17:20:03+00:00
State: open

This bug concerns the automated actualization of compiled files from a set of LESS files referencing each other. It was noticed that if `fileA` "imports" `fileB` using the normal `@import` LESS directive, the output is correct, but the `brewer make` and `brewer watch` commands don't associate changes from `fileB` to the need to recompile `fileA`, which works nicely for other parsers.

The problem is indeed that we detect the importation tree and verify modification time based on our own `# import` directive, made up for coffeescript/javascript/etc family (because they don't have this concept; the closest is commonjs modules). There is no workaround, unless we change the way imports are handled for CSS-like languages.