{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/361","repository_url":"https://api.github.com/repos/vuejs-templates/webpack","labels_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/361/comments","events_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/361/events","html_url":"https://github.com/vuejs-templates/webpack/issues/361","id":188942260,"number":361,"title":"Parse Error if use image in html template files.","user":{"login":"zhangxin840","id":2747375,"avatar_url":"https://avatars.githubusercontent.com/u/2747375?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangxin840","html_url":"https://github.com/zhangxin840","followers_url":"https://api.github.com/users/zhangxin840/followers","following_url":"https://api.github.com/users/zhangxin840/following{/other_user}","gists_url":"https://api.github.com/users/zhangxin840/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangxin840/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangxin840/subscriptions","organizations_url":"https://api.github.com/users/zhangxin840/orgs","repos_url":"https://api.github.com/users/zhangxin840/repos","events_url":"https://api.github.com/users/zhangxin840/events{/privacy}","received_events_url":"https://api.github.com/users/zhangxin840/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T23:56:36Z","updated_at":"2016-11-21T12:26:54Z","closed_at":null,"body":"If I add an IMG to the HtmlWebpackPlugin template file like this:\r\n`<img class=\"logo\" src=\"src/assets/tomato.svg\">`\r\nThere will be a parse error:\r\n`\r\nError: Parse Error: <img class=logo src=data:image/svg+xml;base64,PD  94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KP\r\nhtmlparser.js:236 new HTMLParser\r\n[test]/[html-webpack-plugin]/[html-minifier]/src/htmlparser.js:    236:13\r\n`\r\n\r\nTurn off minify (in production config) in HtmlWebpackPlugin will fix this problem.\r\nAccording to this [post](https://github.com/ampedandwired/html-webpack-plugin/blob/master/docs/template-option.md), the HTML will still be minified by the loader even if you turn off the minify option.\r\nSo this minify option seems useless, only causing parse errors.\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs-templates/webpack/issues/comments/261923618","html_url":"https://github.com/vuejs-templates/webpack/issues/361#issuecomment-261923618","issue_url":"https://api.github.com/repos/vuejs-templates/webpack/issues/361","id":261923618,"user":{"login":"LinusBorg","id":1444526,"avatar_url":"https://avatars.githubusercontent.com/u/1444526?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusBorg","html_url":"https://github.com/LinusBorg","followers_url":"https://api.github.com/users/LinusBorg/followers","following_url":"https://api.github.com/users/LinusBorg/following{/other_user}","gists_url":"https://api.github.com/users/LinusBorg/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusBorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusBorg/subscriptions","organizations_url":"https://api.github.com/users/LinusBorg/orgs","repos_url":"https://api.github.com/users/LinusBorg/repos","events_url":"https://api.github.com/users/LinusBorg/events{/privacy}","received_events_url":"https://api.github.com/users/LinusBorg/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T12:26:54Z","updated_at":"2016-11-21T12:26:54Z","body":"> According to this post, the HTML will still be minified by the loader even if you turn off the minify option.\r\n\r\nI don't think that's what the README says. minification would only be activated if we had an HTML loader specified, which we don't.\r\n\r\nThe issue should be something else."}}
{"actor":{"display_login":"LinusBorg"}}