{"id":20816681,"url":"https://github.com/webuni/less-plugin-rewrite-import","last_synced_at":"2025-05-07T13:22:47.645Z","repository":{"id":36052886,"uuid":"40350906","full_name":"webuni/less-plugin-rewrite-import","owner":"webuni","description":"Less plugin for rewriting import statement","archived":false,"fork":false,"pushed_at":"2015-08-07T10:02:36.000Z","size":120,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-06T11:51:51.102Z","etag":null,"topics":[],"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/webuni.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}},"created_at":"2015-08-07T08:51:51.000Z","updated_at":"2021-04-22T06:36:30.000Z","dependencies_parsed_at":"2022-09-02T23:22:08.514Z","dependency_job_id":null,"html_url":"https://github.com/webuni/less-plugin-rewrite-import","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webuni%2Fless-plugin-rewrite-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webuni%2Fless-plugin-rewrite-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webuni%2Fless-plugin-rewrite-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webuni%2Fless-plugin-rewrite-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webuni","download_url":"https://codeload.github.com/webuni/less-plugin-rewrite-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225095860,"owners_count":17420248,"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-11-17T21:36:08.038Z","updated_at":"2024-11-17T21:36:08.855Z","avatar_url":"https://github.com/webuni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"less-plugin-rewrite-import\n==========================\n\nAdds the ability for less to rewrite import statement\n\nlessc usage\n-----------\n\nInstall with npm\n\n```bash\nnpm install -g less-plugin-rewrite-import\n```\n\nOptions:  \npaths - default: {}\n\nProgrammatic usage\n------------------\n\n```js\nvar RewriteImportPlugin = require(\"less-plugin-rewrite-import\"),\n    options = { plugins: [new RewriteImportPlugin({paths: {\n        \"old/path\": \"new/path\",\n        \"older/path\": function(filename, currentDirectory) {\n            return \"newest/path\";\n        }\n    })] };\nless.render(css, options)\n    .then(...\n```\n\nBrowser usage\n-------------\n\nBrowser usage is not supported.\n\nTesting\n-------\n\nrun the tests by running `node test`\nYou require the dev dependencies installed (which includes less)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebuni%2Fless-plugin-rewrite-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebuni%2Fless-plugin-rewrite-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebuni%2Fless-plugin-rewrite-import/lists"}