Skip to content

less @import won't work in a farm animal #65

@garu57

Description

@garu57

Transferred from issue #2808 as requested.


Dokuwiki Greebo
windows 10 and 7

I have a number of css changes that I'd like to keep in separate files, but using @import within less files into conf dir of a farmer animal is not working.

For example using these two files into conf dir of a farmer the content of underlinehx.less is correctly embedded into the css sent to the browser.

/* userstyle.less */
@import "./underlinehx.less";
/* underlinehx.less */
 h1:after, h2:after {
    content: "";
    display: block;
    border-bottom: 1px solid #cccccc;
    overflow: hidden;
}

If the same files are put into the conf dir of a virtual host farm animal underlinehx.less content is not embedded and instead the @import with a mangled path is sent to browser.

 @import "/home/web/httpd/dokuwiki/farm/sandbox-wiki-devel/conf/./underlinehx.less";

Besides that the path would have no meaning for the browser, the @import is deeply nested into css and in any case it would be never executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions