emberfeather/less.js-middleware

Issue with path offset in request path.

Closed this issue · 1 comments

How can I set the offset path.

Example: /global.css
What I want: /css/global.css

I cannot see an option for this, please correct me if I am wrong which I probably am :)

You can read #95 and the 1.0.x migration guide

the option is preprocess.path

I also recommend to use debug: true in the options to see something like this on the console:

pathname : /path/that/comes/from/browser/request.css
source : /path/where/less-middleware/is/trying/to/read.less
destination : /path/where/less-middleware/is/trying/to/write.css

It helps a lot on implementing and debugging this behaviour

Hope this helps 😄