Skip to content

Instantly share code, notes, and snippets.

@karlhorky
Created April 17, 2017 21:49
Show Gist options
  • Save karlhorky/36407633411026275acdee51440d5053 to your computer and use it in GitHub Desktop.
Save karlhorky/36407633411026275acdee51440d5053 to your computer and use it in GitHub Desktop.
Show all hidden modules in webpack-dev-server output
const WebpackDevServer = require('webpack-dev-server');
const webpackOptions = require('../config/webpack/webpack.dev');
const compiler = webpack(webpackOptions);
const devServer = new WebpackDevServer(compiler, {
quiet: false, // Turn on logging (false is the default)
stats: {
maxModules: Infinity, // Does the same thing as --display-modules webpack command line option (shows all hidden modules)
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment