text: const path = require('path')
  const webpack = require('webpack')
  
  module.exports = {
    entry: './app/main.js',
    mode: 'production',
    devtool: 'inline',
    output: {
      path: path.resolve(__dirname, 'public'),
      publicPath: '/public/',
      filename: 'bundle.js'
    },
    module: {
      rules: [
        {
          test: /\.riot$/,
          exclude: /node_modules/,
          use: [{
            loader: '@riotjs/webpack-loader',
            options: {
              hot: true
            }
          }]
        },
        {
          test: /\.js$/,
          exclude: /node_modules/,
          use: {
            loader: 'babel-loader',
            options: {
              presets: ['@babel/preset-env']
            }
          }
        }
      ]
    }
  }
  