{"id":13721802,"url":"https://github.com/ls-age/svelte-preprocess-less","last_synced_at":"2025-12-27T12:18:20.945Z","repository":{"id":28005420,"uuid":"115854764","full_name":"ls-age/svelte-preprocess-less","owner":"ls-age","description":"Svelte preprocessor for less","archived":false,"fork":false,"pushed_at":"2023-04-18T07:35:52.000Z","size":411,"stargazers_count":13,"open_issues_count":22,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T18:39:00.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ls-age.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-31T09:38:16.000Z","updated_at":"2022-06-29T10:14:07.000Z","dependencies_parsed_at":"2024-01-06T01:04:52.301Z","dependency_job_id":"e2cd216b-d8d3-4a14-a46c-68d83ce1ddca","html_url":"https://github.com/ls-age/svelte-preprocess-less","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ls-age%2Fsvelte-preprocess-less","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ls-age%2Fsvelte-preprocess-less/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ls-age%2Fsvelte-preprocess-less/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ls-age%2Fsvelte-preprocess-less/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ls-age","download_url":"https://codeload.github.com/ls-age/svelte-preprocess-less/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252895479,"owners_count":21821167,"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":[],"created_at":"2024-08-03T01:01:21.582Z","updated_at":"2025-12-27T12:18:15.896Z","avatar_url":"https://github.com/ls-age.png","language":"JavaScript","funding_links":[],"categories":["integrations","Integrations"],"sub_categories":["preprocessors","Preprocessing"],"readme":"# svelte-preprocess-less\n\n[![CircleCI](https://circleci.com/gh/ls-age/svelte-preprocess-less.svg?style=svg)](https://circleci.com/gh/ls-age/svelte-preprocess-less)\n[![codecov](https://codecov.io/gh/ls-age/svelte-preprocess-less/branch/master/graph/badge.svg)](https://codecov.io/gh/ls-age/svelte-preprocess-less)\n\n\u003e Svelte preprocessor for [less](http://lesscss.org)\n\n## Installation\n\n```bash\nnpm install --save-dev svelte-preprocess-less less\n```\n\n## Usage\n\n**Using rollup-plugin-svelte**\n\n```javascript\n// rollup.config.js\nimport svelte from 'rollup-plugin-svelte';\nimport { less } from 'svelte-preprocess-less';\n...\n\nexport default {\n  ...\n  plugins: [\n    ...\n    svelte({\n      preprocess: {\n        style: less(),\n      },\n    }),\n  ],\n};\n```\n\nNow all `\u003cstyle\u003e` elements in your components that have a `type=\"text/less\"` or `lang=\"less\"` attribute will be preprocessed by less.\n\n### Passing options to less\n\nThe `less` function passes the first argument to the less compiler, e.g.:\n\n```javascript\n...\nless({\n  plugins: [\n    ...\n  ]\n})\n```\n\n\n### Filtering styles\n\nThe `less` function passes the second argument to [svelte-preprocess-filter](https://github.com/ls-age/svelte-preprocess-filter), e.g.:\n\n```javascript\n...\nless(\n  {} // Empty less options\n  { all: true } // Preprocess all styles\n)\n```\n\nFor available options visit [the less documentation](http://lesscss.org/usage/#programmatic-usage).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fls-age%2Fsvelte-preprocess-less","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fls-age%2Fsvelte-preprocess-less","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fls-age%2Fsvelte-preprocess-less/lists"}