{"size": 851, "ext": "js", "max_stars_repo_path": "docs/build/dev-server.js", "max_stars_repo_name": "wguldin/postcss-salad", "max_stars_repo_stars_event_min_datetime": "2016-04-26T12:59:34.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-12T03:27:04.000Z", "max_issues_repo_path": "docs/build/dev-server.js", "max_issues_repo_name": "wguldin/postcss-salad", "max_issues_repo_issues_event_min_datetime": "2016-05-10T03:14:21.000Z", "max_issues_repo_issues_event_max_datetime": "2017-11-24T01:07:33.000Z", "max_forks_repo_path": "docs/build/dev-server.js", "max_forks_repo_name": "wguldin/postcss-salad", "max_forks_repo_forks_event_min_datetime": "2016-05-12T06:45:38.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-19T05:22:26.000Z"}
{"max_stars_count": 298, "max_issues_count": 15, "max_forks_count": 62, "avg_line_length": 31.5185185185, "max_line_length": 110, "alphanum_fraction": 0.7168037603}
if (!process.env.NODE_ENV) process.env.NODE_ENV = 'devlopment';
var WebpackDevServer = require('webpack-dev-server');
var path = require('path')
var webpack = require('webpack')
var webpackConfig = require('./webpack.dev.conf')

webpackConfig.entry.app.unshift("webpack-dev-server/client?http://localhost:8080/", "webpack/hot/dev-server");
// default port where dev server listens for incoming traffic
var port = process.env.PORT || 8998
var compiler = webpack(webpackConfig)

new WebpackDevServer(compiler, {
  contentBase: webpackConfig.output.path,
  hot: true,
  historyApiFallback: true,
  stats: {
    colors: true,
    // hide all chunk dependencies because it's unreadable
    chunkModules: false,
    // noize
    assets: false
  }
  // noInfo: true
}).listen(8080, () => {
  console.log('listen on http://localhost:8080/postcss-salad');
});
