{"id":20551965,"url":"https://github.com/osaton/gulp-sass-variables","last_synced_at":"2025-04-14T11:33:11.063Z","repository":{"id":57258909,"uuid":"69162792","full_name":"osaton/gulp-sass-variables","owner":"osaton","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-11T12:52:02.000Z","size":6,"stargazers_count":12,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T00:44:32.354Z","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/osaton.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-09-25T12:25:19.000Z","updated_at":"2023-06-15T16:33:19.000Z","dependencies_parsed_at":"2022-08-28T21:02:02.559Z","dependency_job_id":null,"html_url":"https://github.com/osaton/gulp-sass-variables","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/osaton%2Fgulp-sass-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-sass-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-sass-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-sass-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osaton","download_url":"https://codeload.github.com/osaton/gulp-sass-variables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248872085,"owners_count":21175345,"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-16T02:34:38.602Z","updated_at":"2025-04-14T11:33:10.982Z","avatar_url":"https://github.com/osaton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this\nAdd Sass variables to gulp stream, so that you can use for example environment variables in your Sass build process.\n\nSupports strings, numbers and booleans.\n\n## Installation\n\n```bash\n$ npm install gulp-sass-variables --save-dev\n```\n\n## Usage\n\n### gulpfile.js\n```javascript\nvar gulp = require('gulp'),\n    argv = require('yargs').argv,\n    sassVariables = require('gulp-sass-variables'),\n    sass = require('gulp-sass');\n\n// Compile css\ngulp.task('css', function () {\n  return gulp.src('./src/scss/master.scss')\n             .pipe(sassVariables({\n               $env: argv.production ? 'production' : 'development'\n             }))\n             .pipe(sass())\n             .pipe(gulp.dest('./dist/css'))\n});\n\n```\n\n### master.scss\n```scss\n$env: 'development' !default;\n$path: '/dev/path/' !default;\n\n@if($env == 'production') {\n  $path: '/prod/path';\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosaton%2Fgulp-sass-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosaton%2Fgulp-sass-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosaton%2Fgulp-sass-variables/lists"}