just-boris / less-plugin-glob

Globbing support for LESS
MIT License
70 stars 12 forks source link

Installing with Grunt #13

Closed louiswalch closed 7 years ago

louiswalch commented 7 years ago

I'm having some issues getting this to work with Grunt, can you please take a look:

This is the less section of my Gruntfile.js:

            less: {
                development: {
                    options: {
                        paths: ['<%= directory %>assets_new/css'],
                        plugins: [require('less-plugin-glob')]
                    },
                    files: {
                        '<%= directory %>assets_new/css/style.css': '<%= directory %>assets_new/css/src/__bootstrap.less'
                    }
                }
            },

My less file contains: @import "breakpoint_desktop/**";

When I build, I'm getting the following error:

FileError: 'breakpoint_desktop/.less' wasn't found in... @import "breakpoint_desktop/";

Thanks.

louiswalch commented 7 years ago

Figured out my issue, I had a super old version of Grunt installed. Totally forget to keep it updated. Thanks for the great plugin.