{"action":"opened","issue":{"url":"https://api.github.com/repos/nanoc/nanoc/issues/1200","repository_url":"https://api.github.com/repos/nanoc/nanoc","labels_url":"https://api.github.com/repos/nanoc/nanoc/issues/1200/labels{/name}","comments_url":"https://api.github.com/repos/nanoc/nanoc/issues/1200/comments","events_url":"https://api.github.com/repos/nanoc/nanoc/issues/1200/events","html_url":"https://github.com/nanoc/nanoc/issues/1200","id":247134278,"number":1200,"title":"Ability to include sourcemap with sass filter","user":{"login":"ryanjm","id":90015,"avatar_url":"https://avatars0.githubusercontent.com/u/90015?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanjm","html_url":"https://github.com/ryanjm","followers_url":"https://api.github.com/users/ryanjm/followers","following_url":"https://api.github.com/users/ryanjm/following{/other_user}","gists_url":"https://api.github.com/users/ryanjm/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanjm/subscriptions","organizations_url":"https://api.github.com/users/ryanjm/orgs","repos_url":"https://api.github.com/users/ryanjm/repos","events_url":"https://api.github.com/users/ryanjm/events{/privacy}","received_events_url":"https://api.github.com/users/ryanjm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-01T16:53:17Z","updated_at":"2017-08-01T16:53:17Z","closed_at":null,"body":"I want to be able to generate the sourcemap with sass.\r\n\r\n```\r\ncompile '/stylesheets/*.scss' do\r\n  filter :sass, syntax: :scss, sourcemap: true\r\n  write item.identifier.without_ext + \".css\"\r\nend\r\n```\r\n\r\nBut, each `compile` is only able to output [one file](https://github.com/nanoc/nanoc/issues/883#issuecomment-229864903) at a time. So I'd like the ability to create a second rule to handle the sourcemap:\r\n\r\n```\r\ncompile '/stylesheets/*.scss' do\r\n  filter :sass_sourcemap, syntax: :scss\r\n  write item.identifier.without_ext + \".css.map\"\r\nend\r\n```\r\n\r\nBut ([source](https://nanoc.ws/doc/rules/)):\r\n\r\n> For every item, Nanoc finds the first matching compilation rule.\r\n\r\nSo how can Nanoc support this? Is there a way to opt out of the \"only first match\" rule?\r\n\r\nSome people have created custom [filters](https://github.com/nanoc/nanoc/issues/1148#issuecomment-290976898) which also write out their own files, but doesn't seem like a proper solution for Nanoc."}}
{"actor":{"display_login":"ryanjm"}}