{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2990","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2990/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2990/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2990/events","html_url":"https://github.com/webpack/webpack/issues/2990","id":176712405,"number":2990,"title":"2.1.0-beta.22 - build hangs when non-web `target` specified.","user":{"login":"thomb","id":432878,"avatar_url":"https://avatars.githubusercontent.com/u/432878?v=3","gravatar_id":"","url":"https://api.github.com/users/thomb","html_url":"https://github.com/thomb","followers_url":"https://api.github.com/users/thomb/followers","following_url":"https://api.github.com/users/thomb/following{/other_user}","gists_url":"https://api.github.com/users/thomb/gists{/gist_id}","starred_url":"https://api.github.com/users/thomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomb/subscriptions","organizations_url":"https://api.github.com/users/thomb/orgs","repos_url":"https://api.github.com/users/thomb/repos","events_url":"https://api.github.com/users/thomb/events{/privacy}","received_events_url":"https://api.github.com/users/thomb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/bug","name":"bug","color":"fbca04"},{"url":"https://api.github.com/repos/webpack/webpack/labels/electron","name":"electron","color":"f7c6c7"},{"url":"https://api.github.com/repos/webpack/webpack/labels/P0:%20Critical","name":"P0: Critical","color":"b60205"},{"url":"https://api.github.com/repos/webpack/webpack/labels/S4:%20Broken","name":"S4: Broken","color":"0052cc"},{"url":"https://api.github.com/repos/webpack/webpack/labels/webpack-2","name":"webpack-2","color":"c5def5"},{"url":"https://api.github.com/repos/webpack/webpack/labels/X0:%20need%20more%20information","name":"X0: need more information","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T18:18:21Z","updated_at":"2016-09-14T03:58:55Z","closed_at":null,"body":"**I'm submitting a bug report**\r\n\r\n**Webpack version:**\r\n2.1.0-beta.22\r\n\r\n**Please tell us about your environment:**\r\nOSX 10.10.5\r\n\r\n\r\n**Current behavior:**\r\nWhen `target` is specified as any of `node`, `async-node`, `node-webkit` or `electron` the build never finishes it hangs at:\r\n\r\n` 75% advanced module optimization`\r\n\r\nThis arose while attempting to build for `electron`\r\n\r\n**Expected/desired behavior:**\r\nThis same config file worked without issues in `1.13.1`, I never even noticed this `advanced module optimization` step before updating to 2.1.0-beta.22\r\n\r\nBelow is my webpack config:\r\n```\r\nconst autoprefixer = require('autoprefixer');\r\nconst path = require('path');\r\nconst webpack = require('webpack');\r\n\r\nmodule.exports = {\r\n\tentry: {\r\n\t\tprimary: ['./html/js/main.js']\r\n\t},\r\n\tmodule: {\r\n\t\tloaders: [{\r\n\t\t\ttest: /\\.js$/,\r\n\t\t\tinclude: [\r\n\t\t\t\tpath.resolve(__dirname, \"..\", \"..\", \"html\"),\r\n\t\t\t\tpath.resolve(__dirname, \"..\", \"html\"),\r\n\t\t\t\tpath.resolve(__dirname, \"..\", \"tests\"),\r\n\t\t\t\tpath.resolve(__dirname, \"..\", \"node_modules/qs\")\r\n\t\t\t],\r\n\t\t\tloader: 'babel?cacheDirectory'\r\n\t\t},\r\n\t\t{test: /\\.jsx$/, loader: 'babel?cacheDirectory'},\r\n\t\t{test: /\\.json/, loader: 'json'},\r\n\t\t{test: /\\.less$/, loader: 'style!css?modules!postcss!less'},\r\n\t\t{test: /\\.png$/, loader: 'file'},\r\n\t\t{test: /\\.jpg$/, loader: 'file'},\r\n\t\t{test: /\\.woff$/, loader: 'file'},\r\n\t\t{test: /\\.woff2$/, loader: 'file'},\r\n\t\t{test: /\\.svg$/, loader: 'file'}\r\n\t]},\r\n\toutput: {\r\n\t\tpath: path.resolve('./html/build/'),\r\n\t\tpublicPath: '/build/',\r\n\t\tfilename: 'bundle.js'\r\n\t},\r\n\tpostcss: [autoprefixer],\r\n\tplugins: [\r\n\t\t// Ignore non-English moment.js locales\r\n\t\t// See: http://stackoverflow.com/questions/25384360\r\n\t\tnew webpack.ContextReplacementPlugin(/moment[\\/\\\\]locale$/, /en/),\r\n\t\tnew webpack.optimize.UglifyJsPlugin({\r\n\t\t\tmangle: false\r\n\t\t}),\r\n\t\tnew webpack.optimize.DedupePlugin(),\r\n\t\tnew webpack.DefinePlugin({\r\n\t\t\t__DEV__: false,\r\n\r\n\t\t\t// Ensures React is running in production mode\r\n\t\t\t\"process.env.NODE_ENV\": '\"production\"'\r\n\t\t}),\r\n\t\tnew webpack.NoErrorsPlugin(),\r\n\t\tnew webpack.IgnorePlugin(/_deprecated_extensions/)\r\n\t],\r\n\tresolve: {\r\n\t\tfallback: [\r\n\t\t\tpath.join(__dirname, \"node_modules\")\r\n\t\t]\r\n\t},\r\n\tresolveLoader: {\r\n\t\troot: path.join(__dirname, \"node_modules\")\r\n\t},\r\n\ttarget: 'electron'\r\n};\r\n```\r\n\r\nAnd here is the output:\r\n```\r\n[10:26:36] $ npm run build:webp[ack \r\nNODE_ENV=production webpack --config webpack.config.js --progress\r\n\r\n 75% advanced module optimization\r\n^C                               \r\n                                 \r\n[11:11:44] $\r\n```\r\n\r\nUntil that ` 75% advanced module optimization` I see regular progress.\r\n\r\n Is there anything in my `webpack.config.js` which is going to cause issues when building for the `electron` target? \r\n\r\nI have tried removing the `plugins`, `postcss`, `resolve` and `resolveLoader` to get this config to be as simple as possible, but I've seen no change in behaviour.\r\n\r\n\r\nApologies if this is considered a support request, it seemed to me likely to be an issue with the `2.1.0-beta.22` build.\r\n\r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/246900073","html_url":"https://github.com/webpack/webpack/issues/2990#issuecomment-246900073","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2990","id":246900073,"user":{"login":"bebraw","id":166921,"avatar_url":"https://avatars.githubusercontent.com/u/166921?v=3","gravatar_id":"","url":"https://api.github.com/users/bebraw","html_url":"https://github.com/bebraw","followers_url":"https://api.github.com/users/bebraw/followers","following_url":"https://api.github.com/users/bebraw/following{/other_user}","gists_url":"https://api.github.com/users/bebraw/gists{/gist_id}","starred_url":"https://api.github.com/users/bebraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebraw/subscriptions","organizations_url":"https://api.github.com/users/bebraw/orgs","repos_url":"https://api.github.com/users/bebraw/repos","events_url":"https://api.github.com/users/bebraw/events{/privacy}","received_events_url":"https://api.github.com/users/bebraw/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T03:58:55Z","updated_at":"2016-09-14T03:58:55Z","body":"Can you provide a standalone test case? Thanks."}}
{"actor":{"display_login":"bebraw"}}