text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const webpack = require('webpack');
  
  commonConfig = {
      entry: {
          app: [
              path.join(__dirname, 'src/index.js')
          ],
          vendor: ['react', 'react-router-dom', 'redux', 'react-dom', 'react-redux']
      },
      output: {
          path: path.join(__dirname, './dist'),
          filename: '[name].[chunkhash].js',
          chunkFilename: '[name].[chunkhash].js',
          publicPath: ""
      },
      module: {
          rules: [{
              test: /\.jsx?$/,
              use: ['babel-loader?cacheDirectory=true'],
              include: path.join(__dirname, 'src')
          }, {
              test: /\.(png|jpg|gif)$/,
              use: [{
                  loader: 'url-loader',
                  options: {
                      limit: 8192
                  }
              }]
          }]
      },
      plugins: [
          new HtmlWebpackPlugin({
              filename: 'index.html',
              template: path.join(__dirname, 'src/index.html')
          }),
          new webpack.HashedModuleIdsPlugin()
      ],
  
      resolve: {
          extensions:['.js','.jsx'],
          alias: {
              '@': path.join(__dirname, 'src')
          }
      }
  };
  
  module.exports = commonConfig;
  