{"action":"created","issue":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/395","repository_url":"https://api.github.com/repos/parcel-bundler/parcel","labels_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/395/comments","events_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/395/events","html_url":"https://github.com/parcel-bundler/parcel/issues/395","id":284374789,"number":395,"title":"PostHTML plugins don't work.","user":{"login":"Aaronepower","id":4464295,"avatar_url":"https://avatars2.githubusercontent.com/u/4464295?v=4","gravatar_id":"","url":"https://api.github.com/users/Aaronepower","html_url":"https://github.com/Aaronepower","followers_url":"https://api.github.com/users/Aaronepower/followers","following_url":"https://api.github.com/users/Aaronepower/following{/other_user}","gists_url":"https://api.github.com/users/Aaronepower/gists{/gist_id}","starred_url":"https://api.github.com/users/Aaronepower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aaronepower/subscriptions","organizations_url":"https://api.github.com/users/Aaronepower/orgs","repos_url":"https://api.github.com/users/Aaronepower/repos","events_url":"https://api.github.com/users/Aaronepower/events{/privacy}","received_events_url":"https://api.github.com/users/Aaronepower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-24T17:42:31Z","updated_at":"2017-12-24T22:32:45Z","closed_at":null,"author_association":"NONE","body":"**Choose one:** is this a 🐛 bug report or 🙋 feature request?\r\n🐛\r\n<!--- Provide a general summary of the issue in the title above -->\r\nTrying to use posthtml plugins causes the `index.html` to become `<div></div>`. regardless of what it was.\r\n\r\n### 🎛 Configuration (.babelrc, package.json, cli command)\r\n\r\n#### `index.html`\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title></title>\r\n</head>\r\n<body>\r\n    <h1 classname=\"foo\">Hello World</h1>\r\n</body>\r\n</html>\r\n```\r\n\r\n#### `index.css`\r\n```css\r\n.foo {\r\n    background-color: red;\r\n}\r\n```\r\n\r\n#### `.postcssrc`\r\n```json\r\n{\r\n    \"modules\": true,\r\n}\r\n```\r\n\r\n#### `.posthtmlrc`\r\n```json\r\n{\r\n    \"plugins\": {\r\n        \"posthtml-postcss-modules\": true\r\n    }\r\n}\r\n```\r\n\r\n#### `package.json`\r\n```json\r\n{\r\n  \"name\": \"parcel\",\r\n  \"version\": \"1.0.0\",\r\n  \"main\": \"index.js\",\r\n  \"license\": \"MIT\",\r\n  \"devDependencies\": {\r\n    \"postcss-modules\": \"^1.1.0\",\r\n    \"posthtml-postcss-modules\": \"^0.1.5\"\r\n  }\r\n}\r\n```\r\n\r\n### 🤔 Expected Behavior\r\n\r\nGenerate the expected html with modifications performed by the posthtml plugins.\r\n\r\n### 😯 Current Behavior\r\n\r\nGenerates a `index.html` containing only `<div></div>`\r\n\r\n\r\n### 🔦 Context\r\n\r\nThis prevents me from working on any project using parcel.\r\n\r\n### 🌍 Your Environment\r\n\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| Software         | Version(s) |\r\n| ---------------- | ---------- |\r\n| Parcel           | 1.3.1 |\r\n| Node             | v9.3.0 |\r\n| npm/Yarn         | 5.6.0/1.3.2 |\r\n| Operating System | macOS 10.13.2 |"},"comment":{"url":"https://api.github.com/repos/parcel-bundler/parcel/issues/comments/353805786","html_url":"https://github.com/parcel-bundler/parcel/issues/395#issuecomment-353805786","issue_url":"https://api.github.com/repos/parcel-bundler/parcel/issues/395","id":353805786,"user":{"login":"devongovett","id":19409,"avatar_url":"https://avatars0.githubusercontent.com/u/19409?v=4","gravatar_id":"","url":"https://api.github.com/users/devongovett","html_url":"https://github.com/devongovett","followers_url":"https://api.github.com/users/devongovett/followers","following_url":"https://api.github.com/users/devongovett/following{/other_user}","gists_url":"https://api.github.com/users/devongovett/gists{/gist_id}","starred_url":"https://api.github.com/users/devongovett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devongovett/subscriptions","organizations_url":"https://api.github.com/users/devongovett/orgs","repos_url":"https://api.github.com/users/devongovett/repos","events_url":"https://api.github.com/users/devongovett/events{/privacy}","received_events_url":"https://api.github.com/users/devongovett/received_events","type":"User","site_admin":false},"created_at":"2017-12-24T22:32:45Z","updated_at":"2017-12-24T22:32:45Z","author_association":"OWNER","body":"There is an example in the tests that works. Can you give any more details about what doesn't work for you? Are there error messages?\r\n\r\nhttps://github.com/parcel-bundler/parcel/tree/master/test/integration/posthtml"}}
{"actor":{"display_login":"devongovett"}}