text: var path = require('path');
  
  module.exports = {
      mode: 'production',
      entry: './src/index.js',
      output: {
          path: path.resolve('lib'),
          filename: 'index.js',
          libraryTarget: 'commonjs2'
      },
      module: {
          rules: [
              {
                  test: /\.js?$/,
                  exclude: /(node_modules)/,
                  use: 'babel-loader',
              },
              {
                  test: /\.css$/,
                  use: [
                      { loader: 'style-loader' },
                      { loader: 'css-loader' },
                      { loader: 'less-loader' }
                  ]
              }
          ]
      }
  }