{"id":15065691,"url":"https://github.com/phaistonian/stylus-vars-loader","last_synced_at":"2026-01-02T17:11:32.694Z","repository":{"id":57373879,"uuid":"84673135","full_name":"phaistonian/stylus-vars-loader","owner":"phaistonian","description":"Inject your vars into webpack","archived":false,"fork":false,"pushed_at":"2017-05-01T04:54:26.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T23:48:48.538Z","etag":null,"topics":["loader","stylus","webpack"],"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/phaistonian.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":"2017-03-11T19:01:46.000Z","updated_at":"2023-03-08T03:43:47.000Z","dependencies_parsed_at":"2022-09-15T03:02:14.716Z","dependency_job_id":null,"html_url":"https://github.com/phaistonian/stylus-vars-loader","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/phaistonian%2Fstylus-vars-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaistonian%2Fstylus-vars-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaistonian%2Fstylus-vars-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaistonian%2Fstylus-vars-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phaistonian","download_url":"https://codeload.github.com/phaistonian/stylus-vars-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243030784,"owners_count":20224665,"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":["loader","stylus","webpack"],"created_at":"2024-09-25T00:45:32.151Z","updated_at":"2026-01-02T17:11:32.659Z","avatar_url":"https://github.com/phaistonian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This simple loader will prepend the file (or files) of your choice hosting your variables to stylus files.\n\nFor example, say you have an `index.js` file and you do this\n`import './index.styl'`\nthen instead of always referencing your global `vars.styl` file from the `index.styl`, you can use the loader to do it for you.\n\n### Install\n`npm i -D stylus-vars-loader`\nor\n`yarn add stylus-vars-loader`\n\n### Publish\n`yarn version`\n`git push`\n`npm publish`\n\n### Use\n```js\n{\n  test: /\\.styl$/,\n  use: [\n    'style-loader',\n    'css-loader',\n    'stylus-loader',\n    {\n      loader: 'stylus-vars-loader',\n      options: {\n        file: './css/vars.styl',\n\n        // you can also do multiple files\n        file: ['./css/vars.styl', './css/media-queries.styl'],\n\n        // glob too\n        file: './css/vars/*',\n      },\n    },\n  ]\n}\n```\n\n---\n\nSpecial thanks to [Juho](https://twitter.com/bebraw) for always sharing pointers when asked to.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaistonian%2Fstylus-vars-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphaistonian%2Fstylus-vars-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaistonian%2Fstylus-vars-loader/lists"}