Closed Martii closed 7 years ago
Actually this is a hard problem, cause we don't know what is the FileSystem location only based on req. Any ideas?
New ideas: allowing users to specify a LESS instance so that he/she can get control with the working directory configurations.
You can specify LESS options now.
Hello again. This is going to be a bit tricky to explain but I will give it a go in a reduced test case form...
someSnippet.js
someSnippet.html
source1.less
source2.less
Produces the following output at our http://localhost:8080/source1.less:
... instead of the expected ...
@import
statement? Currently we are using the less-middleware package to achieve support.@import
statement we are going to need some exposure to thepaths
option in less too probably similar to #15 e.g. we currently pick through a series of.less
files at different paths in our project tree and import them into our own.less
from a different path.As long as we don't use the
@import
statement and keep all variables and mixins in the same file express-minify works with less parsing and compiling... however splitting them out doesn't seem to.Any help would be greatly appreciated.