{"action":"closed","issue":{"url":"https://api.github.com/repos/mobilexag/plugin-sass/issues/26","repository_url":"https://api.github.com/repos/mobilexag/plugin-sass","labels_url":"https://api.github.com/repos/mobilexag/plugin-sass/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/mobilexag/plugin-sass/issues/26/comments","events_url":"https://api.github.com/repos/mobilexag/plugin-sass/issues/26/events","html_url":"https://github.com/mobilexag/plugin-sass/issues/26","id":129534671,"number":26,"title":"Issues around multiple sass files being compiled, urlBase is reset each time.","user":{"login":"dougludlow","id":733821,"avatar_url":"https://avatars.githubusercontent.com/u/733821?v=3","gravatar_id":"","url":"https://api.github.com/users/dougludlow","html_url":"https://github.com/dougludlow","followers_url":"https://api.github.com/users/dougludlow/followers","following_url":"https://api.github.com/users/dougludlow/following{/other_user}","gists_url":"https://api.github.com/users/dougludlow/gists{/gist_id}","starred_url":"https://api.github.com/users/dougludlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougludlow/subscriptions","organizations_url":"https://api.github.com/users/dougludlow/orgs","repos_url":"https://api.github.com/users/dougludlow/repos","events_url":"https://api.github.com/users/dougludlow/events{/privacy}","received_events_url":"https://api.github.com/users/dougludlow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-28T18:24:36Z","updated_at":"2016-02-04T10:33:29Z","closed_at":"2016-02-04T10:33:29Z","body":"So I've run into an issue where when I'm importing multiple sass files, the urlBase is being reset each time which results in the urlBase being set to the last file that was compiled and breaks imports in other files.\r\n\r\nI've attempted to fix the issue by placing urlBase in a closure instead of hanging it globally in the sass-builder/sass-inject, however, it appears that sass.js is a singleton and so anytime sass.import is called it overwrites the previous importer and the urlBase is hence overwritten.\r\n\r\nAny ideas on how to get a different instance of sass.js for each compile?"}}