Automatic enqueue of style.less #25

oncletom opened this Issue Dec 17, 2012 · 2 comments


None yet
2 participants

oncletom commented Dec 17, 2012

If no LESS file has been spotted in the enqueue mechanism and a style.less file is present in the root directory, it should be automagically enqueued.

This behavior should be configurable through WPLessConfig class and a config constant.

@ghost ghost assigned oncletom Dec 17, 2012


sebastianschmid commented Oct 6, 2013

I don't think this is a good idea.
Likewise, a style.css is no enqueued automatically, so why should this work with less then?

The Theme has to be modified to support wp-less anyway, like, use a .less file. It's not too much asked of a theme developer to enqueue his very own less files.


oncletom commented Oct 6, 2013

You're right.

Hence the documentation and the frontpage of the plugin seems quite explicit, some people still don't use wp_enqueue_style in their theme to load stylesheets. I guess I wanted to do that for this purpose. To be even simpler.

But yep, agreed. That's good not to implement features on the go, it let time to think about it ;-)

@oncletom oncletom closed this Oct 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment