{"action":"created","issue":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/280","labels_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/280/comments","events_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/280/events","html_url":"https://github.com/dlmanning/gulp-sass/issues/280","id":77746311,"number":280,"title":"Pass variables to Sass","user":{"login":"kiki-le-singe","id":2029646,"avatar_url":"https://avatars.githubusercontent.com/u/2029646?v=3","gravatar_id":"","url":"https://api.github.com/users/kiki-le-singe","html_url":"https://github.com/kiki-le-singe","followers_url":"https://api.github.com/users/kiki-le-singe/followers","following_url":"https://api.github.com/users/kiki-le-singe/following{/other_user}","gists_url":"https://api.github.com/users/kiki-le-singe/gists{/gist_id}","starred_url":"https://api.github.com/users/kiki-le-singe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiki-le-singe/subscriptions","organizations_url":"https://api.github.com/users/kiki-le-singe/orgs","repos_url":"https://api.github.com/users/kiki-le-singe/repos","events_url":"https://api.github.com/users/kiki-le-singe/events{/privacy}","received_events_url":"https://api.github.com/users/kiki-le-singe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-18T17:58:45Z","updated_at":"2015-11-28T03:17:29Z","closed_at":"2015-05-21T15:42:26Z","body":"Hello,\r\n\r\nIs it possible to pass any variables to the sass files ?\r\n\r\nexample:\r\n\r\ngulp task:\r\n\r\n```javascript\r\nvar gulp = require('gulp');\r\nvar $ = require('gulp-load-plugins')();\r\nvar sassConfig = require('./config').sass;\r\nvar fontsConfig = require('./config').fonts;\r\n\r\ngulp.task('sass:dist', function () {\r\n  return gulp.src(sassConfig.mainSassFile)\r\n    .pipe($.sass())\r\n    .pipe($.preprocess({context: {PATH: '../../bower_components/foundation-icon-fonts/icons'}}))\r\n    .pipe($.concat('main.min.css'))\r\n    .pipe($.minifyCss())\r\n    .pipe(gulp.dest(sassConfig.dist.dest));\r\n});\r\n```\r\n\r\nvariable sass:\r\n\r\n```\r\n$fi-path: 'PATH';\r\n```\r\n\r\nThanks for your help\r\n"},"comment":{"url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/comments/160243261","html_url":"https://github.com/dlmanning/gulp-sass/issues/280#issuecomment-160243261","issue_url":"https://api.github.com/repos/dlmanning/gulp-sass/issues/280","id":160243261,"user":{"login":"sgarbesi","id":155986,"avatar_url":"https://avatars.githubusercontent.com/u/155986?v=3","gravatar_id":"","url":"https://api.github.com/users/sgarbesi","html_url":"https://github.com/sgarbesi","followers_url":"https://api.github.com/users/sgarbesi/followers","following_url":"https://api.github.com/users/sgarbesi/following{/other_user}","gists_url":"https://api.github.com/users/sgarbesi/gists{/gist_id}","starred_url":"https://api.github.com/users/sgarbesi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgarbesi/subscriptions","organizations_url":"https://api.github.com/users/sgarbesi/orgs","repos_url":"https://api.github.com/users/sgarbesi/repos","events_url":"https://api.github.com/users/sgarbesi/events{/privacy}","received_events_url":"https://api.github.com/users/sgarbesi/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T03:17:29Z","updated_at":"2015-11-28T03:17:29Z","body":"@kiki-le-singe Why would you use preprocess after calling `sass()`? Shouldn't it be the other way around?"}}