{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/4559","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/4559/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/4559/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/4559/events","html_url":"https://github.com/nuxt/nuxt.js/issues/4559","id":391340893,"node_id":"MDU6SXNzdWUzOTEzNDA4OTM=","number":4559,"title":"Non-scoped styles inside unused layouts get applied anyway","user":{"login":"jaredreich","id":8563847,"node_id":"MDQ6VXNlcjg1NjM4NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/8563847?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredreich","html_url":"https://github.com/jaredreich","followers_url":"https://api.github.com/users/jaredreich/followers","following_url":"https://api.github.com/users/jaredreich/following{/other_user}","gists_url":"https://api.github.com/users/jaredreich/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredreich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredreich/subscriptions","organizations_url":"https://api.github.com/users/jaredreich/orgs","repos_url":"https://api.github.com/users/jaredreich/repos","events_url":"https://api.github.com/users/jaredreich/events{/privacy}","received_events_url":"https://api.github.com/users/jaredreich/received_events","type":"User","site_admin":false},"labels":[{"id":882702378,"node_id":"MDU6TGFiZWw4ODI3MDIzNzg=","url":"https://api.github.com/repos/nuxt/nuxt.js/labels/cmty:bug-report","name":"cmty:bug-report","color":"f7b2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-15T03:46:45Z","updated_at":"2018-12-16T23:07:05Z","closed_at":null,"author_association":"NONE","body":"### Version\n\n[2.3.4](https://github.com/nuxt.js/releases/tag/2.3.4)\n\n### Reproduction link\n\n[https://codesandbox.io/s/1vm41pzp1l](https://codesandbox.io/s/1vm41pzp1l)\n\n### Steps to reproduce\n\nYou can see that there is an `html { ... }` style declaration in the layout file `layouts/test.vue`... even though that layout is never used anywhere, the style is still applied.\n\nShouldn't styles (non-scoped too) declared in a layout only be applied when the layout is in use? Is this possible?\n\n### What is expected ?\n\nStyles declared in a layout should only apply when the layout is in use.\n\n### What is actually happening?\n\nStyles declared in a layout are applied even when the layout is not in use.\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This bug report is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt.js/issues/c8313\">#c8313</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/447685276","html_url":"https://github.com/nuxt/nuxt.js/issues/4559#issuecomment-447685276","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/4559","id":447685276,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY4NTI3Ng==","user":{"login":"jaredreich","id":8563847,"node_id":"MDQ6VXNlcjg1NjM4NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/8563847?v=4","gravatar_id":"","url":"https://api.github.com/users/jaredreich","html_url":"https://github.com/jaredreich","followers_url":"https://api.github.com/users/jaredreich/followers","following_url":"https://api.github.com/users/jaredreich/following{/other_user}","gists_url":"https://api.github.com/users/jaredreich/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredreich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredreich/subscriptions","organizations_url":"https://api.github.com/users/jaredreich/orgs","repos_url":"https://api.github.com/users/jaredreich/repos","events_url":"https://api.github.com/users/jaredreich/events{/privacy}","received_events_url":"https://api.github.com/users/jaredreich/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T23:07:05Z","updated_at":"2018-12-16T23:07:05Z","author_association":"NONE","body":"Related to nuxt.js/issues/1801? This definitely feels like an unresolved bug."}}
{"actor":{"display_login":"jaredreich"}}