{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/7094","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/7094/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/7094/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/7094/events","html_url":"https://github.com/webpack/webpack/issues/7094","id":316535719,"number":7094,"title":"CSS Order Differs Between Development & Production Modes when Treeshaking.","user":{"login":"brycehill","id":2396642,"avatar_url":"https://avatars1.githubusercontent.com/u/2396642?v=4","gravatar_id":"","url":"https://api.github.com/users/brycehill","html_url":"https://github.com/brycehill","followers_url":"https://api.github.com/users/brycehill/followers","following_url":"https://api.github.com/users/brycehill/following{/other_user}","gists_url":"https://api.github.com/users/brycehill/gists{/gist_id}","starred_url":"https://api.github.com/users/brycehill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycehill/subscriptions","organizations_url":"https://api.github.com/users/brycehill/orgs","repos_url":"https://api.github.com/users/brycehill/repos","events_url":"https://api.github.com/users/brycehill/events{/privacy}","received_events_url":"https://api.github.com/users/brycehill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/webpack/webpack/milestones/19","html_url":"https://github.com/webpack/webpack/milestone/19","labels_url":"https://api.github.com/repos/webpack/webpack/milestones/19/labels","id":3207664,"number":19,"title":"important bugfixes","description":null,"creator":{"login":"sokra","id":1365881,"avatar_url":"https://avatars0.githubusercontent.com/u/1365881?v=4","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":4,"state":"open","created_at":"2018-03-21T21:39:16Z","updated_at":"2018-05-04T11:54:27Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-04-22T00:00:36Z","updated_at":"2018-05-05T04:54:01Z","closed_at":null,"author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of webpack. -->\r\n<!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\nCSS seems to be out of order in \"development\" vs \"production\" mode. It appears somehow related to `sideEffects` and tree shaking. \r\n\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n<!-- A great way to do this is to provide your configuration via a GitHub gist. -->\r\n<!-- Best provide a minimal reproduceable repo -->\r\n<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo -->\r\nHere's a repo demonstrating the issue: https://github.com/brycehill/webpack-css-order.\r\n\r\nThere are instructions in the readme. Basically, if you build in `development` mode, the outputted CSS is different from `production` mode. \r\n\r\n**What is the expected behavior?**\r\nCSS order is consistent from one environment to another. \r\n\r\nI don't want to depend on a specific CSS order, but I do expect it to be consistent from when I develop to when I build for production.\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\nN/A\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.**\r\n\r\nNode: v8.9.1\r\nWebpack: v4.6.0\r\nOS: MacOS High Sierra\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/386779299","html_url":"https://github.com/webpack/webpack/issues/7094#issuecomment-386779299","issue_url":"https://api.github.com/repos/webpack/webpack/issues/7094","id":386779299,"user":{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars1.githubusercontent.com/u/3408176?v=4","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false},"created_at":"2018-05-05T04:54:01Z","updated_at":"2018-05-05T04:54:01Z","author_association":"OWNER","body":"@brycehill are you saying that unused CSS which causes the development mode to look different from production mode is getting treeshaken? "}}
{"actor":{"display_login":"TheLarkInn"}}