{"action":"created","issue":{"url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/5","repository_url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding","labels_url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/5/comments","events_url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/5/events","html_url":"https://github.com/JesseZhao1990/multipage-webpack-scaffolding/issues/5","id":345618015,"node_id":"MDU6SXNzdWUzNDU2MTgwMTU=","number":5,"title":"打包后的HTML页面可以选择不压缩吗？","user":{"login":"J-env","id":25259920,"node_id":"MDQ6VXNlcjI1MjU5OTIw","avatar_url":"https://avatars0.githubusercontent.com/u/25259920?v=4","gravatar_id":"","url":"https://api.github.com/users/J-env","html_url":"https://github.com/J-env","followers_url":"https://api.github.com/users/J-env/followers","following_url":"https://api.github.com/users/J-env/following{/other_user}","gists_url":"https://api.github.com/users/J-env/gists{/gist_id}","starred_url":"https://api.github.com/users/J-env/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-env/subscriptions","organizations_url":"https://api.github.com/users/J-env/orgs","repos_url":"https://api.github.com/users/J-env/repos","events_url":"https://api.github.com/users/J-env/events{/privacy}","received_events_url":"https://api.github.com/users/J-env/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-30T05:39:45Z","updated_at":"2018-07-30T09:07:42Z","closed_at":null,"author_association":"NONE","body":"不压缩html页面"},"comment":{"url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/comments/408797708","html_url":"https://github.com/JesseZhao1990/multipage-webpack-scaffolding/issues/5#issuecomment-408797708","issue_url":"https://api.github.com/repos/JesseZhao1990/multipage-webpack-scaffolding/issues/5","id":408797708,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODc5NzcwOA==","user":{"login":"JesseZhao1990","id":15058550,"node_id":"MDQ6VXNlcjE1MDU4NTUw","avatar_url":"https://avatars3.githubusercontent.com/u/15058550?v=4","gravatar_id":"","url":"https://api.github.com/users/JesseZhao1990","html_url":"https://github.com/JesseZhao1990","followers_url":"https://api.github.com/users/JesseZhao1990/followers","following_url":"https://api.github.com/users/JesseZhao1990/following{/other_user}","gists_url":"https://api.github.com/users/JesseZhao1990/gists{/gist_id}","starred_url":"https://api.github.com/users/JesseZhao1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesseZhao1990/subscriptions","organizations_url":"https://api.github.com/users/JesseZhao1990/orgs","repos_url":"https://api.github.com/users/JesseZhao1990/repos","events_url":"https://api.github.com/users/JesseZhao1990/events{/privacy}","received_events_url":"https://api.github.com/users/JesseZhao1990/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T09:07:42Z","updated_at":"2018-07-30T09:07:42Z","author_association":"OWNER","body":"@J-env \r\n你加在我的配置文件里之所以不起作用，是因为我本身对`.html`加了一个loader（html-withimg-loader）。我刚刚去查了一下这个loader的文档，发现其有一个配置是不压缩html的。所以现在你想不压缩html文件的话。需要做下面的三步就ok了。\r\n\r\n- 打开webpack.config.prod.js文件。\r\n- 修改html-withimg-loader的options，将min改为false。第63行-64行。\r\n- 修改html-webpack-plugin的配置，注释掉172到178行。放开第171行。\r\n\r\n如果你还有别的loader处理`.html`，也需要那些loader支持不处理html压缩。\r\n\r\n"}}
{"actor":{"display_login":"JesseZhao1990"}}