const chokidar = require('chokidar'),
    open = require('open'),
    webpack = require('webpack'),
    express = require('express'),
    log = require('friendly-errors-webpack-plugin/src/output'),

    config = require('../config.js'),
    webpackConfig = require('./webpack.config.dev.js'),

    uri = 'http://localhost:' + config.dev.port,
    compiler = webpack(webpackConfig),

    devMiddleware = require('webpack-dev-middleware')(compiler, {
        publicPath: webpackConfig.output.publicPath,
        logLevel: 'error'
    }),
    hotMiddleware = require('webpack-hot-middleware')(compiler, {
        log: false
    }),
    app = express();

chokidar.watch('.');

compiler.hooks.compilation.tap('html-webpack-plugin-after-emit', () =>
    hotMiddleware.publish({action: 'reload'})
);

app.use(devMiddleware)
   .use(hotMiddleware)
   .use(config.dev.assetsVirtualRoot, express.static('./static'));

devMiddleware.waitUntilValid(() =>
    log.title('success', 'DONE', `Listening At ${uri}`)
);

module.exports = app.listen(config.dev.port, err => {

    if (err) {
        log.title('error', 'ERROR', `${err}`);
        return;
    }

    open(uri);

});

@@ -1,14 +1,38 @@
 const 
+os = require('os'),%0A    
 chokidar
@@ -668,16 +668,45 @@
 ess();%0A%0A
+os.platform() !== 'win32' && 
 chokidar

update build