Skip to content

Instantly share code, notes, and snippets.

@mutewinter
Last active June 13, 2016 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mutewinter/68fc55cc0b8a3365e1fa8308e8d2cb71 to your computer and use it in GitHub Desktop.
Save mutewinter/68fc55cc0b8a3365e1fa8308e8d2cb71 to your computer and use it in GitHub Desktop.
Minimal output from Webpack
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
var PORT = process.env.PORT || 1337;
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
quiet: false,
noInfo: false,
stats: {
// Config for minimal console.log mess.
assets: false,
colors: true,
version: false,
hash: false,
timings: false,
chunks: false,
chunkModules: false
},
historyApiFallback: true
}).listen(PORT, 'localhost', function (err, result) {
if (err) {
return console.log(err);
}
console.log(`Listening at http://localhost:${PORT}/`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment