{"action":"opened","issue":{"url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/1081","repository_url":"https://api.github.com/repos/jantimon/html-webpack-plugin","labels_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/1081/labels{/name}","comments_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/1081/comments","events_url":"https://api.github.com/repos/jantimon/html-webpack-plugin/issues/1081/events","html_url":"https://github.com/jantimon/html-webpack-plugin/issues/1081","id":371832357,"node_id":"MDU6SXNzdWUzNzE4MzIzNTc=","number":1081,"title":"generated html file is not minified","user":{"login":"jamessouth","id":25541381,"node_id":"MDQ6VXNlcjI1NTQxMzgx","avatar_url":"https://avatars3.githubusercontent.com/u/25541381?v=4","gravatar_id":"","url":"https://api.github.com/users/jamessouth","html_url":"https://github.com/jamessouth","followers_url":"https://api.github.com/users/jamessouth/followers","following_url":"https://api.github.com/users/jamessouth/following{/other_user}","gists_url":"https://api.github.com/users/jamessouth/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessouth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessouth/subscriptions","organizations_url":"https://api.github.com/users/jamessouth/orgs","repos_url":"https://api.github.com/users/jamessouth/repos","events_url":"https://api.github.com/users/jamessouth/events{/privacy}","received_events_url":"https://api.github.com/users/jamessouth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T07:08:39Z","updated_at":"2018-10-19T07:08:39Z","closed_at":null,"author_association":"NONE","body":"## Expected behaviour\r\n\r\n```\r\n<!DOCTYPE html><html><head><meta charset=\"UTF-8\"><title>Webpack App</title></head><body><script src=\"main.a70592c0fcd7919c0ff6.js\"></script></body></html>\r\n```\r\n\r\n## Current behaviour\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Webpack App</title>\r\n  </head>\r\n  <body>\r\n  <script type=\"text/javascript\" src=\"main.a70592c0fcd7919c0ff6.js\"></script></body>\r\n</html>\r\n```\r\n\r\n## Environment\r\n\r\n\r\n```\r\nNode.js v8.10.0\r\nwin32 10.0.17134\r\nnpm 6.4.0\r\nwebpack 4.17.2\r\nhtml-webpack-plugin 3.2.0\r\n```\r\n\r\n### Config\r\n\r\n\r\n```js\r\nconst path = require('path');\r\nconst webpack = require('webpack');\r\nconst HTMLWebpackPlugin = require('html-webpack-plugin');\r\n\r\nmodule.exports = {\r\n  mode: 'production',\r\n  entry: {\r\n    main: './src/js/test.js',\r\n  },\r\n  output: {\r\n    filename: '[name].[contenthash].js',\r\n    chunkFilename: '[name].[contenthash].js',\r\n    path: path.resolve(__dirname, 'test'),\r\n  },\r\n  plugins: [\r\n    new HTMLWebpackPlugin(),\r\n  ],\r\n};\r\n```\r\n\r\n\r\n## Relevant Links\r\n\r\n- If your project is public, link to the repo so we can investigate directly.\r\n\r\n[MY REPO](https://github.com/jamessouth/Project-12)\r\n\r\n## Additional context\r\n\r\nWhether I use my html5 template or not, specify the minify option true/false or not, use html-loader or not, import my html into my js entry or not, I can't get minified output. The test.js entry is a blank file.  My full config has the usual rules, plugins, etc, but even removing all that as above, no minified output.  I don't know what's going on.  When I run my full build, the only part that is minified is the 3 injected script tags, the rest of the generated html file is pretty, just like the source template html file.\r\n"}}
{"actor":{"display_login":"jamessouth"}}