{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/elixir/issues/184","labels_url":"https://api.github.com/repos/laravel/elixir/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/laravel/elixir/issues/184/comments","events_url":"https://api.github.com/repos/laravel/elixir/issues/184/events","html_url":"https://github.com/laravel/elixir/issues/184","id":89904574,"number":184,"title":"Allow wildcards for toplevel files","user":{"login":"atrauzzi","id":115199,"avatar_url":"https://avatars.githubusercontent.com/u/115199?v=3","gravatar_id":"","url":"https://api.github.com/users/atrauzzi","html_url":"https://github.com/atrauzzi","followers_url":"https://api.github.com/users/atrauzzi/followers","following_url":"https://api.github.com/users/atrauzzi/following{/other_user}","gists_url":"https://api.github.com/users/atrauzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/atrauzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrauzzi/subscriptions","organizations_url":"https://api.github.com/users/atrauzzi/orgs","repos_url":"https://api.github.com/users/atrauzzi/repos","events_url":"https://api.github.com/users/atrauzzi/events{/privacy}","received_events_url":"https://api.github.com/users/atrauzzi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-21T12:22:08Z","updated_at":"2015-06-24T15:07:47Z","closed_at":"2015-06-24T15:07:47Z","body":"When I'm building SASS, JavaScript or TypeScript, I usually like to rely on each tool's features for modularity.  What this means is that I usually end up with a handful of top-level entry point scripts and the combining happens preprocessor/transpiler-side not, via a concatenation done by Elixir.\r\n\r\nIt would be nice if I could tell Elixir to look at a specific directory and trigger the corresponding build once for each file in that directory and then automatically map each output to the destination directory.\r\n\r\nThe example usage would basically be globbing support:\r\n\r\n```\r\nmix.sass(\"page/*\");\r\n```\r\n\r\nImagining that the directory in my example had `full.scss` and `page.scss`, then the output directory would end up with `full.css` and `page.css` based on the output of running SASS once for each file caught in the glob.\r\n\r\nRationale: Right now it seems like I have to specify each top-level file individually, which for obvious reasons is more code than having a clean convention for built-entrypoints.  It also encourages people to modularize in the scope that the preprocessors/transpilers are aware of, rather than relying on outside concatenation."},"comment":{"url":"https://api.github.com/repos/laravel/elixir/issues/comments/114901230","html_url":"https://github.com/laravel/elixir/issues/184#issuecomment-114901230","issue_url":"https://api.github.com/repos/laravel/elixir/issues/184","id":114901230,"user":{"login":"JeffreyWay","id":183223,"avatar_url":"https://avatars.githubusercontent.com/u/183223?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffreyWay","html_url":"https://github.com/JeffreyWay","followers_url":"https://api.github.com/users/JeffreyWay/followers","following_url":"https://api.github.com/users/JeffreyWay/following{/other_user}","gists_url":"https://api.github.com/users/JeffreyWay/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffreyWay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffreyWay/subscriptions","organizations_url":"https://api.github.com/users/JeffreyWay/orgs","repos_url":"https://api.github.com/users/JeffreyWay/repos","events_url":"https://api.github.com/users/JeffreyWay/events{/privacy}","received_events_url":"https://api.github.com/users/JeffreyWay/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T15:07:47Z","updated_at":"2015-06-24T15:07:47Z","body":"Yeah - it got changed with the 2.0 release of Elixir. If you pass a glob (or an array of paths), they'll all be merged into one.\r\n\r\nIf you want multiple files, you would need to call `mix.sass()` multiple times."}}