{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1094","labels_url":"https://api.github.com/repos/sass/sass/issues/1094/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1094/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1094/events","html_url":"https://github.com/sass/sass/issues/1094","id":26572897,"number":1094,"title":"@import v2 wishlist compilation","user":{"login":"JulienCabanes","id":3443052,"avatar_url":"https://avatars.githubusercontent.com/u/3443052?v=3","gravatar_id":"","url":"https://api.github.com/users/JulienCabanes","html_url":"https://github.com/JulienCabanes","followers_url":"https://api.github.com/users/JulienCabanes/followers","following_url":"https://api.github.com/users/JulienCabanes/following{/other_user}","gists_url":"https://api.github.com/users/JulienCabanes/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienCabanes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienCabanes/subscriptions","organizations_url":"https://api.github.com/users/JulienCabanes/orgs","repos_url":"https://api.github.com/users/JulienCabanes/repos","events_url":"https://api.github.com/users/JulienCabanes/events{/privacy}","received_events_url":"https://api.github.com/users/JulienCabanes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/sass/labels/@import%20v2","name":"@import v2","color":"DDDDDD"},{"url":"https://api.github.com/repos/sass/sass/labels/Feature","name":"Feature","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2014-01-30T03:32:02Z","updated_at":"2015-07-06T18:33:29Z","closed_at":null,"body":"This is a compilation of issues and wishes about @import\r\n\r\n### Import CSS files #556\r\n\r\n```scss\r\n@import \"normalize\";\r\n```\r\n\r\nWould import sass, scss or **css** file\r\n> There's a [plugin](https://github.com/chriseppstein/sass-css-importer) for that\r\n\r\n\r\n### Import Once #139\r\n\r\n```scss\r\n@import-once \"foo\";\r\n@import \"foo\" !once;\r\n@depend \"foo\";\r\n```\r\n\r\nMultiple syntax suggestions for one time import\r\n> There is a [plugin](https://github.com/chriseppstein/compass/tree/master/import-once) for that\r\n\r\n\r\n### Import Directory #690\r\n\r\n```@import \"foo\";```\r\n\r\nIf \"foo\" is a folder than it tries to import \"foo/_module.scss\"\r\n> reasonable\r\n\r\n### Namespaces and Aliases #353\r\n\r\n```scss\r\n@import \"foo\" as \"bar\";\r\n```\r\n\r\nThis would put every \"foo\" components (mixins, vars, placeholders...) in a \"bar\" package.\r\n\r\nWhat would be the separator ? ```.``` or ```/``` or ```\\``` or ```::``` ?\r\nWhere would go the ```$``` and ```%``` ? Before or after the namespace ?\r\nWhat it would look like :\r\n\r\n```scss\r\n// Mixins\r\n@include bar.baz();\r\nor\r\n@include bar/baz();\r\n\r\n// Variables\r\ncolor: $bar.baz;\r\nor\r\ncolor: bar.$baz;\r\nor\r\ncolor: $bar/baz;\r\nor\r\ncolor: bar/$baz;\r\n\r\n// Placeholders\r\ndiv { @extend %bar.baz; }\r\nor\r\ndiv { @extend bar.%baz; }\r\nor\r\ndiv { @extend %bar/baz; }\r\nor\r\ndiv { @extend bar/%baz; }\r\n\r\n// Functions\r\ncolor: bar.baz();\r\nor\r\ncolor: bar/baz();\r\n```\r\n\r\n\r\n### Non-transitive imports [#353](https://github.com/nex3/sass/issues/353#issuecomment-5146513)\r\n\r\n> if A imports B and B imports C, A shouldn't necessarily see everything from C.\r\n> A way of getting around non-transitive imports.\r\n\r\n\r\n### Renaming classes [#353](https://github.com/nex3/sass/issues/353#issuecomment-5146513)\r\n\r\n> This isn't something I'm 100% sold on, but it has been requested. Maybe the correct way to do this is some combination of namespacing and @extend.\r\n\r\n### Disabling CSS output [#353](https://github.com/nex3/sass/issues/353#issuecomment-5146513)\r\n\r\n> Both selectively and wholesale. The importer may want to @extend the rules in the importee but not have them concretely present, or it may want to suppress rules matching a certain selector.\r\n\r\nThis is also related to #320 :\r\n```scss\r\n// A.scss\r\n.foo {...}\r\n.bar {...}\r\n\r\n// B.scss\r\n@use \"A\";\r\n.baz { @extend .foo; }\r\n```\r\n\r\nB output would not contain ```.foo``` & ```.bar``` definition but only ```.baz```;\r\n\r\n### Conditional imports #451\r\n\r\n```scss\r\n@if true {\r\n\t@import \"foo\";\r\n}\r\n```\r\n\r\nIt \"worked\" before but never intended.\r\n\r\n### Paths\r\n\r\nA way to setup shortcut paths (like [Require.js](https://github.com/jrburke/r.js/blob/master/build/example.build.js#L46-L49)) \r\n\r\n```scss\r\n// No syntax intended, only the purpose\r\n@paths (\r\n\t\"bootstrap\": \"../components/bootstrap-sass/vendor/assets/stylesheets/bootstrap\"\r\n);\r\n\r\n@import \"bootstrap\";\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/118950879","html_url":"https://github.com/sass/sass/issues/1094#issuecomment-118950879","issue_url":"https://api.github.com/repos/sass/sass/issues/1094","id":118950879,"user":{"login":"Jakobud","id":87356,"avatar_url":"https://avatars.githubusercontent.com/u/87356?v=3","gravatar_id":"","url":"https://api.github.com/users/Jakobud","html_url":"https://github.com/Jakobud","followers_url":"https://api.github.com/users/Jakobud/followers","following_url":"https://api.github.com/users/Jakobud/following{/other_user}","gists_url":"https://api.github.com/users/Jakobud/gists{/gist_id}","starred_url":"https://api.github.com/users/Jakobud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jakobud/subscriptions","organizations_url":"https://api.github.com/users/Jakobud/orgs","repos_url":"https://api.github.com/users/Jakobud/repos","events_url":"https://api.github.com/users/Jakobud/events{/privacy}","received_events_url":"https://api.github.com/users/Jakobud/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T18:33:29Z","updated_at":"2015-07-06T18:33:29Z","body":"@cimmanon \r\n\r\n> You're asking for a completely different issue that can be solved by features that already exist in Sass (see: #279 (comment))\r\n\r\nThat only applies for someone using vanilla Ruby SASS at the command line. Not easy (or not possible in many cases) for everyone using SASS via CodeKit, Grunt, Gulp, ANT, Node, and a 100 other build tools with custom SASS pipelines."}}