text: const webpack = require('webpack');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const path = require('path');
  
  module.exports = {
    entry: 
      {
        'admataz-shape-shop':'./src/index.js'
      },
    module: {
      loaders: [{
          test: /\.jsx?$/,
          exclude: /node_modules/,
          loader: 'react-hot-loader!babel-loader'
        },
        {
          test: /\.scss$/,
          use: [{
                  loader: "style-loader" // creates style nodes from JS strings
              }, {
                  loader: "css-loader" // translates CSS into CommonJS
              }, {
                  loader: "sass-loader" // compiles Sass to CSS
              }]
        }
      ]
    },
    resolve: {
      extensions: ['*', '.js', '.jsx']
    },
    output: {
      filename: '[name].js',
      path: path.resolve(__dirname, 'dist'),
      libraryTarget: 'umd',
      library: 'admataz-shape-shop'
    },
    plugins: [
      new CopyWebpackPlugin([{
        from: `${__dirname}/src/html/*.html`,
        to: `${__dirname}/dist`,
        flatten: true
      }, ]),
      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;
          }
      })
    ]
  
    // devtool: 'cheap-module-source-map', // faster than 'source-map'
  };