hlashbrooke / WordPress-Plugin-Template

A robust code template for creating a standards-compliant WordPress plugin.
https://hughlashbrooke.com/
GNU General Public License v2.0
1.03k stars 329 forks source link

dirs.css vs less.css #14

Closed yivi closed 10 years ago

yivi commented 10 years ago

Isn't this an error?

        less: {
            compile: {
                options: {
                    // These paths are searched for @imports
                    paths: ['<%= less.css %>/']
                },
                files: [{
                    expand: true,
                    cwd: '<%= dirs.css %>/',

Shoudn't it read "paths: ['<%= dirs.css %>']"?

hlashbrooke commented 10 years ago

I'm not too sure about that as I didn't add the grunt support. @kloon, do you have any thoughts on this?

kloon commented 10 years ago

@yivi no its not an error, are you getting any error with this? paths is defined under options, in this cause less.css and dirs.css is the exact same directory

yivi commented 10 years ago

Thanks @kloon.

Not an error, it does work. Still, I'm miffed because I don't see where less.css gets defined.

It's probably just my ignorance showing, but it's obvious where dirs.css is defined, but don't understand where do less.css come from...