text: 
  const path = require('path');
  const webpack = require('webpack')
  
  const VENDOR_LIBS = [
    'redux', 'react-redux', 'react-dom'
  ]
  
  module.exports = {
    entry: {
      app: './assets/js/app/app.js',
      vendor: VENDOR_LIBS
    },
    output: { filename: '[name].js',
              path: path.resolve(__dirname, 'public/js/components') },
    module: {
      rules: [
        {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          options: {
            presets: [
              [ 'es2015', { modules: false } ]
            ]
          }
        },
        {
              test: /\.scss$/,
              use: [{
                  loader: "style-loader"
              }, {
                  loader: "css-loader", options: {
                      sourceMap: true
                  }
              }, {
                  loader: "sass-loader", options: {
                      sourceMap: true
                  }
              }]
          }
      ]
    },
    plugins: [
              new webpack.optimize.CommonsChunkPlugin({
                  name: 'vendor',
                  minChunks: function (module) {
                     // this assumes your vendor imports exist in the node_modules directory
                     return module.context && module.context.indexOf('node_modules') !== -1;
                  }
              }),
      //         new webpack.optimize.UglifyJsPlugin({
      //   sourceMap: options.devtool && (options.devtool.indexOf("sourcemap") >= 0 || options.devtool.indexOf("source-map") >= 0)
      // }),
      // new webpack.Define
              // new webpack.optimize.CommonsChunkPlugin({
              //     name: 'manifest' //But since there are no more common modules between them we end up with just the runtime code included in the manifest file
              // })
          ]
  };
  