text: 'use stract';
  
  var webpack = require("webpack");
  var path = require("path");
  var ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  
  module.exports = {
    // The configuration for the server-side rendering
    name: "server-side rendering",
    context: path.join(__dirname),
    target: "node",
    entry: {
      server: ['babel-polyfill', './src/server']
    },
    output: {
      path: './dist/assets/',
      filename: "server.js",
      publicPath: "http://odr4tn94d.bkt.clouddn.com/wall/",
      libraryTarget: "commonjs2"
    },
    plugins: [
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.UglifyJsPlugin({
        compressor: {
          warnings: false
        }
      }),
      new ExtractTextPlugin('buddle.[hash].css'),
      new webpack.DefinePlugin({
        __DEVCLIENT__: false,
        __DEVSERVER__: false,
        'process.env': {
          'NODE_ENV': JSON.stringify('production')
        }
      }),
      new webpack.NoErrorsPlugin(),
      new webpack.IgnorePlugin(/vertx/),
    ],
    module: {
      preLoaders: [
        {test: /\.js$|\.jsx$/, loader: "eslint-loader", exclude: /node_modules/}
      ],
      loaders: [
        {
          test: /\.js$|\.jsx$/,
          loader: 'babel',
          query: {
            "presets": ["es2015", "react", "stage-0"],
            "plugins": ["transform-decorators-legacy", "syntax-async-functions"]
          },
          include: path.join(__dirname, './src'),
          exclude: /node_modules/,
        },
        {
          test: /\.css$/,
          loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
        },
        {
          test: /\.sass/,
          loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded&indentedSyntax'
        },
        {
          test: /\.scss/,
          loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader?outputStyle=expanded')
        },
        {
          test: /\.less/,
          loader: 'style-loader!css-loader!less-loader'
        },
        {
          test: /\.styl/,
          loader: ExtractTextPlugin.extract('style-loader', 'css-loader!stylus-loader')
        },
        {test: /\.json$/, loader: "json-loader"},
        {
          test: /\.(jpe?g|png|gif|svg)$/i,
          loaders: [
            'url?limit=10000&name=[hash:8].[name].[ext]',
            'image-webpack?{progressive:true, optimizationLevel: 7, interlaced: false, pngquant:{quality: "65-90", speed: 4}}'
          ]
        }
      ]
    },
    resolve: {
      extensions: ['', '.js', '.jsx', '.css'],
      modulesDirectories: [
        "src", "node_modules"
      ]
    }
  };
  