text: var path = require('path');
  var webpack = require('webpack');
  var WebpackDevServer = require('webpack-dev-server');
  
  var port = 3000;
  var config = {
      entry: {
          vendor: [
              'three',
              'webpack-dev-server/client?http://localhost:' + port,
              'webpack/hot/only-dev-server'
          ],
          app: [
              './src/js/index'
          ]
      },
      output: {
          path: path.join(__dirname, '../build'),
          filename: 'bundle.js',
          publicPath: '/build/'
      },
      plugins: [
          new webpack.HotModuleReplacementPlugin(),
          new webpack.optimize.CommonsChunkPlugin({
              name: 'vendor',
              minChunks: Infinity,
              filename: 'common.js'
          }),
          new webpack.optimize.OccurenceOrderPlugin()
      ],
      module: {
          loaders: [{
              test: /\.(less|css)$/, loader: 'style!css!less',
              exclude: ['node_modules']
          }, {
              test: /\.js$/,
              loader: 'babel',
              query: {
                  presets: ['es2015']
              },
              include: path.join(__dirname, '../src'),
              exclude: ['node_modules']
          }]
      }
  };
  
  new WebpackDevServer(webpack(config), {
      publicPath: config.output.publicPath,
      hot: true,
      noInfo: false,
      stats: {colors: true},
      open: true,
      historyApiFallback: true
  }).listen(port, 'localhost', function (error) {
      if (error) {
          console.error(error);
      }
      console.info('==> 🌎  Listening on port %s. Open up http://localhost:%s/ in your browser.', port, port)
  });