Last active
June 13, 2016 13:29
-
-
Save mutewinter/68fc55cc0b8a3365e1fa8308e8d2cb71 to your computer and use it in GitHub Desktop.
Minimal output from Webpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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