{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/272","repository_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin","labels_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/272/comments","events_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/272/events","html_url":"https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/272","id":310993041,"node_id":"MDU6SXNzdWUzMTA5OTMwNDE=","number":272,"title":"Production build hangs at 92%","user":{"login":"melloc01","id":4994258,"node_id":"MDQ6VXNlcjQ5OTQyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/4994258?v=4","gravatar_id":"","url":"https://api.github.com/users/melloc01","html_url":"https://github.com/melloc01","followers_url":"https://api.github.com/users/melloc01/followers","following_url":"https://api.github.com/users/melloc01/following{/other_user}","gists_url":"https://api.github.com/users/melloc01/gists{/gist_id}","starred_url":"https://api.github.com/users/melloc01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melloc01/subscriptions","organizations_url":"https://api.github.com/users/melloc01/orgs","repos_url":"https://api.github.com/users/melloc01/repos","events_url":"https://api.github.com/users/melloc01/events{/privacy}","received_events_url":"https://api.github.com/users/melloc01/received_events","type":"User","site_admin":false},"labels":[{"id":584651563,"node_id":"MDU6TGFiZWw1ODQ2NTE1NjM=","url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/labels/flag:%20Needs%20more%20info","name":"flag: Needs more info","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":93,"created_at":"2018-04-03T20:47:44Z","updated_at":"2018-12-03T21:06:57Z","closed_at":"2018-04-25T15:16:34Z","author_association":"NONE","body":"Hello,\r\n\r\nI think this is probably a bug with this plugin since the dev build works fine and when I run `webpack --progress` it gets stuck in: \r\n\r\n`92% chunk asset optimization UglifyJSPlugin`\r\n\r\nBelow, the relevant parts of my webpack.config:\r\n\r\n```\r\n....\r\n\r\nmodule.exports = {\r\n    mode,\r\n    node: { fs: 'empty' },\r\n    entry: {\r\n        ...entries\r\n    },\r\n\r\n    output: {\r\n        filename: '[name].js',\r\n        path: path.join(__dirname, '/public/assets/')\r\n    },\r\n\r\n    module: {\r\n        rules: [\r\n            {\r\n                test: /\\.js?$/,\r\n                exclude: /(node_modules)/,\r\n                use: 'babel-loader'\r\n            },\r\n            {\r\n                test: /\\.(scss|css)$/,\r\n                use: [\r\n                    MiniCssExtractPlugin.loader,\r\n\r\n                    {\r\n                        loader: 'css-loader'\r\n                    },\r\n                    {\r\n                        loader: 'sass-loader',\r\n                        options: {\r\n                            sourceMap: true\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    },\r\n\r\n    plugins: [\r\n        new MiniCssExtractPlugin({\r\n            filename: '[name].css'\r\n        })\r\n    ],\r\n\r\n    resolve: {\r\n        alias: {\r\n            core: path.join(__dirname, 'js/core')\r\n        }\r\n    },\r\n\r\n    optimization: {\r\n        splitChunks: {\r\n            minSize: 100000,\r\n            chunks: 'initial',\r\n            maxAsyncRequests: Infinity,\r\n            maxInitialRequests: Infinity,\r\n            name: true,\r\n            cacheGroups: {\r\n                styles: {\r\n                    name: 'core',\r\n                    test: /\\.(scss|css)$/,\r\n                    chunks: 'all',\r\n                    enforce: true\r\n                },\r\n                vendor: {\r\n                    name: 'vendor',\r\n                    test: function (module) {\r\n                        return /\\/node_modules\\//.test(module.context)\r\n                    }\r\n                },\r\n                'core': {\r\n                    name: 'core',\r\n                    test: function (module) {\r\n                        return /live-core\\//.test(module.context)\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n\r\nIs this enough info? I tried to run with `--debug --progress --display-error-details --verbose` but nothing else came out"},"comment":{"url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/comments/443870267","html_url":"https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/272#issuecomment-443870267","issue_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/272","id":443870267,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzg3MDI2Nw==","user":{"login":"Bonbons","id":1007237,"node_id":"MDQ6VXNlcjEwMDcyMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/1007237?v=4","gravatar_id":"","url":"https://api.github.com/users/Bonbons","html_url":"https://github.com/Bonbons","followers_url":"https://api.github.com/users/Bonbons/followers","following_url":"https://api.github.com/users/Bonbons/following{/other_user}","gists_url":"https://api.github.com/users/Bonbons/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonbons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonbons/subscriptions","organizations_url":"https://api.github.com/users/Bonbons/orgs","repos_url":"https://api.github.com/users/Bonbons/repos","events_url":"https://api.github.com/users/Bonbons/events{/privacy}","received_events_url":"https://api.github.com/users/Bonbons/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T21:06:57Z","updated_at":"2018-12-03T21:06:57Z","author_association":"NONE","body":"The problem is that Uglify does not say that it loops on a regex.\r\n"}}
{"actor":{"display_login":"Bonbons"}}