text: const path = require("path");
  const webpack = require("webpack");
  const glob = require('glob');
  
  module.exports = {
    config: {
      entry: {
        'root':  ['babel-polyfill',  './static/js/entry/root'],
        'error':  ['babel-polyfill',  './static/js/entry/error'],
        'style': "./static/js/entry/style"
      },
      module: {
        rules: [
          {
            test: /\.(png|svg|ttf|woff|woff2|eot|gif)$/,
            use: 'url-loader'
          },
        ]
      },
      resolve: {
        modules: [
          path.join(__dirname, "static/js"),
          "node_modules"
        ],
        extensions: ['.js', '.jsx'],
        alias: {
          'videojs-contrib-hls': path.resolve(__dirname, 'node_modules/videojs-contrib-hls/dist/videojs-contrib-hls.js'),
          'videojs-contrib-quality-levels': path.resolve(__dirname, 'node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.js'),
        }
      },
      performance: {
        hints: false
      }
    },
    babelSharedLoader: {
      test: /\.jsx?$/,
      exclude: /node_modules/,
      loader: 'babel-loader',
      query: {
        "presets": [
          ["env", { "modules": false }],
          "react",
        ],
        "ignore": [
          "node_modules/**"
        ],
        "plugins": [
          "transform-flow-strip-types",
          "react-hot-loader/babel",
          "transform-object-rest-spread",
          "transform-class-properties",
          "syntax-dynamic-import",
        ]
      }
    },
  };
  