{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2224","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2224/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2224/events","html_url":"https://github.com/webpack/webpack/issues/2224","id":142847218,"number":2224,"title":"How to display hidden modules","user":{"login":"Luncher","id":5138977,"avatar_url":"https://avatars.githubusercontent.com/u/5138977?v=3","gravatar_id":"","url":"https://api.github.com/users/Luncher","html_url":"https://github.com/Luncher","followers_url":"https://api.github.com/users/Luncher/followers","following_url":"https://api.github.com/users/Luncher/following{/other_user}","gists_url":"https://api.github.com/users/Luncher/gists{/gist_id}","starred_url":"https://api.github.com/users/Luncher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luncher/subscriptions","organizations_url":"https://api.github.com/users/Luncher/orgs","repos_url":"https://api.github.com/users/Luncher/repos","events_url":"https://api.github.com/users/Luncher/events{/privacy}","received_events_url":"https://api.github.com/users/Luncher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T03:20:28Z","updated_at":"2016-03-23T03:20:28Z","closed_at":null,"body":"\r\nHow to display hidden modules, when I add --display-modules seems ineffective .\r\nMy configuration is as follows :\r\n\r\nvar webpack = require('webpack');\r\nvar path = require('path');\r\nvar fs = require('fs-extra');\r\nvar packageJSON = fs.readJsonSync('./package.json');\r\n\r\nvar nodeModules = {};\r\nfs.readdirSync('node_modules')\r\n  .filter(function(x) {\r\n    return ['.bin'].indexOf(x) === -1;\r\n  })\r\n  .filter(function(y) {\r\n    return !(y in packageJSON.devDependencies);\r\n  })\r\n  .forEach(function(mod) {\r\n\tnodeModules[mod] = 'commonjs ' + mod;\r\n});\r\n\r\nmodule.exports = {\r\n    entry: './app.js',\r\n    target: 'node',\r\n    node: {\r\n        __dirname: false,\r\n        __filename: false\r\n    },\r\n    output: {\r\n        path: path.join(__dirname, 'build'),\r\n        filename: 'output.js',\r\n        externals: nodeModules,\r\n    },\r\n    externals: nodeModules,\r\n    plugins: [\r\n        new webpack.optimize.UglifyJsPlugin({compress: {warnings: false}}),\r\n        new webpack.IgnorePlugin(/\\.(css|less)$/),\r\n        new webpack.BannerPlugin('require(\"source-map-support\").install();',\r\n        { raw: true, entryOnly: false })\r\n    ],\r\n    devtool: 'sourcemap'\r\n}\r\n\r\nRun the command:\r\n\r\n[luncher@localhost SingleIDEServer]$ webpack --display-modules\r\nHash: 625309cd4daaf29f8de9\r\nVersion: webpack 1.12.14\r\nTime: 1352ms\r\n        Asset     Size  Chunks             Chunk Names\r\n    output.js  70.1 kB       0  [emitted]  main\r\noutput.js.map   409 kB       0  [emitted]  main\r\n   [0] ./app.js 3.03 kB {0} [built]\r\n   [1] (webpack)/buildin/module.js 251 bytes {0} [built]\r\n   [2] ./config.js 5.01 kB {0} [built]\r\n   [9] ./middlewares/oauth_strategy.js 131 bytes {0} [built]\r\n  [10] ./router.js 3.84 kB {0} [built]\r\n  [11] ./middlewares/auth.js 1.54 kB {0} [built]\r\n  [13] ./common/logger.js 1.31 kB {0} [built]\r\n  [15] ./proxy/user.js 1.13 kB {0} [built]\r\n  [16] ./controllers/file_storage.js 25.5 kB {0} [built]\r\n  [29] ./middlewares/filter.js 835 bytes {0} [built]\r\n  [30] ./controllers/game.js 19.4 kB {0} [built]\r\n  [36] ./common/tools.js 1.53 kB {0} [built]\r\n  [40] ./middlewares/storage.js 492 bytes {0} [built]\r\n  [41] ./controllers/sign.js 2.28 kB {0} [built]\r\n  [43] ./controllers/sns/index.js 44 bytes {0} [built]\r\n  [44] ./controllers/sns/holaverse.js 681 bytes {0} [built]\r\n  [45] ./controllers/sns/config.js 867 bytes {0} [built]\r\n  [46] ./controllers/storage.js 8.03 kB {0} [built]\r\n  [48] ./controllers/import.js 14.1 kB {0} [built]\r\n  [49] ./controllers/export.js 8.49 kB {0} [built]\r\n  [53] ./common/common.js 4.71 kB {0} [built]\r\n  [54] ./middlewares/conf.js 221 bytes {0} [built]\r\n  [55] ./controllers/preview_app.js 2.31 kB {0} [built]\r\n  [56] ./controllers/publish_app.js 8.45 kB {0} [built]\r\n  [57] ./controllers/res_pairs.js 6.75 kB {0} [built]\r\n  [58] ./controllers/component.js 5.49 kB {0} [built]\r\n  [59] ./middlewares/error_page.js 145 bytes {0} [built]\r\n  [60] ./middlewares/proxy.js 497 bytes {0} [built]\r\n  [67] ./middlewares/static_res.js 3.11 kB {0} [built]\r\n  [68] ./middlewares/request_log.js 787 bytes {0} [built]\r\n  [69] ./middlewares/render.js 335 bytes {0} [built]\r\n  [70] ./middlewares/getgzip.js 2.25 kB {0} [built]\r\n    + 45 hidden modules\r\n"}}