text: 
  const path = require('path');
  
  module.exports = {
    entry: {
      app: './assets/index.js'
    },  // path to our input file
    output: {
      filename: 'index-bundle.js',  // output bundle file name
      path: path.resolve(__dirname, './static'),  // path to our Django static directory
    },
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          exclude: /node_modules/,
          loader: "babel-loader",
          options: { presets: ["@babel/preset-env", "@babel/preset-react"] }
          
        },
        {
        test: /\.(sass|less|css)$/,
        loaders: ['style-loader', 'css-loader', 'less-loader']
        },
      ]
    },
    resolve: {
     // alias: {
     //   redux: path.resolve(__dirname, 'assets/src/utilities/')
     // },
      extensions: ['.js', '.jsx']
    }
  };