{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10158","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10158/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10158/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10158/events","html_url":"https://github.com/yiisoft/yii2/issues/10158","id":116964447,"number":10158,"title":"Allow setting css options per CSS file in AssetBundle::$css","user":{"login":"machour","id":304450,"avatar_url":"https://avatars.githubusercontent.com/u/304450?v=3","gravatar_id":"","url":"https://api.github.com/users/machour","html_url":"https://github.com/machour","followers_url":"https://api.github.com/users/machour/followers","following_url":"https://api.github.com/users/machour/following{/other_user}","gists_url":"https://api.github.com/users/machour/gists{/gist_id}","starred_url":"https://api.github.com/users/machour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machour/subscriptions","organizations_url":"https://api.github.com/users/machour/orgs","repos_url":"https://api.github.com/users/machour/repos","events_url":"https://api.github.com/users/machour/events{/privacy}","received_events_url":"https://api.github.com/users/machour/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:under%20discussion","name":"status:under discussion","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":428,"closed_issues":8,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-11-19T12:45:07Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-11-15T00:54:08Z","updated_at":"2015-11-19T12:45:07Z","closed_at":"2015-11-19T12:45:07Z","body":"Situation : I need to register two CSS files in my asset bundle, `screen.css` for media=\"screen\" and `print.css` for media=\"print\". \r\n\r\nAs far as I can see, the only way to do this for now is to call $view->registerCssFile() by hand when registering my assets, for my print.css file and pass the options in the second parameter.\r\n\r\nI would find it better and simpler if I could specify the options in the AssetBundle::$css property like this:\r\n\r\n```php\r\npublic $css = [\r\n    'screen.css',\r\n    ['print.css', 'media' => 'print'],\r\n];\r\n```\r\n\r\nNo BC break would be introduced by accepting an array as a $css entry type..\r\n\r\nAny blockers?"}}