{"id":18380671,"url":"https://github.com/just-boris/less-plugin-glob","last_synced_at":"2025-04-06T22:33:03.681Z","repository":{"id":27074782,"uuid":"30541270","full_name":"just-boris/less-plugin-glob","owner":"just-boris","description":"Globbing support for LESS","archived":false,"fork":false,"pushed_at":"2018-11-22T09:34:00.000Z","size":45,"stargazers_count":70,"open_issues_count":10,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T08:23:30.777Z","etag":null,"topics":["glob","less","less-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/just-boris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-09T15:03:32.000Z","updated_at":"2025-02-21T08:21:59.000Z","dependencies_parsed_at":"2022-06-25T17:31:20.611Z","dependency_job_id":null,"html_url":"https://github.com/just-boris/less-plugin-glob","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-boris%2Fless-plugin-glob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-boris%2Fless-plugin-glob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-boris%2Fless-plugin-glob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-boris%2Fless-plugin-glob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/just-boris","download_url":"https://codeload.github.com/just-boris/less-plugin-glob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563906,"owners_count":20958971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glob","less","less-plugin"],"created_at":"2024-11-06T00:43:16.252Z","updated_at":"2025-04-06T22:33:03.430Z","avatar_url":"https://github.com/just-boris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# less-plugin-glob\n\n\u003e Globbing support in Less-imports.\n\n[![Travis status](https://img.shields.io/travis/just-boris/less-plugin-glob.svg?style=flat-square)](https://travis-ci.org/just-boris/less-plugin-glob)\n[![npm version](https://img.shields.io/npm/v/less-plugin-glob.svg?style=flat-square)](https://www.npmjs.com/package/less-plugin-glob)\n[![David](https://img.shields.io/david/just-boris/less-plugin-glob.svg?style=flat-square)](https://david-dm.org/just-boris/less-plugin-glob)\n\nThis plugin allows to import multiple files using [glob expressions](https://github.com/isaacs/node-glob).\nAdd this plugin and you can write import like this\n\n```less\n@import \"common/**\";\n@import \"themes/**\";\n```\n\n## How to add plugins?\n\n[Section about plugins in Less documentation](http://lesscss.org/usage/#plugins)\n\n## Examples\n\n### lessc usage\n\n1. `npm install -g less less-plugin-glob`\n1. Create file with import by glob, something like `@import \"includes/**\"`\n1. Run `lessc --glob styles.less styles.css` and enjoy whole your styles concated by one line\n\n### Programmatic usage\n\n1. Install plugin locally `npm install less-plugin-glob`\n2. Import it and add into `plugins` section of options.\n\n```js\nless.render(lessString, { plugins: [require('less-plugin-glob')] })\n```\n\nIf you are using Gulp or Grunt or something else, you can import and add plugin by same way as well.\n\n### Usage with webpack and less-loader\n\nWhen using webpack and `less-loader` \u003e= 4.0, it's important to make sure that `less-loader` is configured *not* to use its webpack resolver, which is now [active by default](https://github.com/webpack-contrib/less-loader#imports). Otherwise, `less-plugin-glob` won't run at all because `less-loader` applies a LESS plugin that passes all queries to the webpack resolver (bypassing this plugin). To make `less-loader` revert to the LESS resolver, [specify the `paths` loader option](https://github.com/webpack-contrib/less-loader#less-resolver):\n\n    {\n      loader: \"less-loader\",\n      options: {\n        plugins: [lessPluginGlob],\n        paths: [path.resolve(__dirname, \"path/to/my/styles\")] // This is the important part!\n      }\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-boris%2Fless-plugin-glob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust-boris%2Fless-plugin-glob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-boris%2Fless-plugin-glob/lists"}