{"id":13773947,"url":"https://github.com/xiaofuzi/rollup-plugin-less","last_synced_at":"2025-10-30T10:33:36.293Z","repository":{"id":10414251,"uuid":"65663684","full_name":"xiaofuzi/rollup-plugin-less","owner":"xiaofuzi","description":"a less rollup plugin","archived":false,"fork":false,"pushed_at":"2023-01-04T22:59:50.000Z","size":143,"stargazers_count":22,"open_issues_count":20,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T07:42:02.630Z","etag":null,"topics":["less","rollup-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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaofuzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-14T11:45:35.000Z","updated_at":"2024-07-23T12:04:42.000Z","dependencies_parsed_at":"2023-01-13T15:55:41.452Z","dependency_job_id":null,"html_url":"https://github.com/xiaofuzi/rollup-plugin-less","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofuzi%2Frollup-plugin-less","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofuzi%2Frollup-plugin-less/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofuzi%2Frollup-plugin-less/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaofuzi%2Frollup-plugin-less/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaofuzi","download_url":"https://codeload.github.com/xiaofuzi/rollup-plugin-less/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657793,"owners_count":21140842,"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":["less","rollup-plugin"],"created_at":"2024-08-03T17:01:22.239Z","updated_at":"2025-10-30T10:33:36.181Z","avatar_url":"https://github.com/xiaofuzi.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["CSS"],"readme":"## Install\n\n```node\nnpm install rollup-plugin-less --save\n```\n\n## usage\n\n```js\nimport './test.less';\n//generate css will be auto insert to the head tag if you set insert be true\n```\n\n```js\nimport { rollup } from 'rollup';\nimport less from 'rollup-plugin-less';\n\nrollup({\n    entry: 'main.js',\n    plugins: [\n        less()\n    ]\n});\n```\n\n\n## Options\n\n### insert\n\n+ Default: `false`\n+ Type: `Boolean`\n\nIf you specify `true`, the plugin will insert compiled CSS into `\u003chead/\u003e` tag.\n\n### output\n\n+ Default: `rollup.build.css`\n\n+ Type: `String|Function|Boolean`\n\nIf you specify a string, it will be the path to write the generated CSS.\nIf you specify a function, call it passing the generated CSS as an argument.\nIf you specify a boolean, true will write the generated CSS to `rollup.build.css`, false won't write the file.\n\n### include\n\n+ Default: `[ '**/*.less', '**/*.css' ]`\n\n+ Type: `String|Array`\n\nMinimatch pattern or array of minimatch patterns to determine which files are transpiled by the plugin.\n\n### exclude\n\n+ Default: `node_modules/**`\n\n+ Type: `String|Array`\n\nMinimatch pattern or array of minimatch patterns to determine which files are explicitly not transpiled by the plugin, overrules the `include` option.\n\n### option\n\n+ Type: `Object`\n\nOptions for [less](http://lesscss.org/usage/#programmatic-usage).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaofuzi%2Frollup-plugin-less","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaofuzi%2Frollup-plugin-less","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaofuzi%2Frollup-plugin-less/lists"}