text: const path = require('path');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  
  module.exports = {
      mode: 'development',
      devtool: 'inline-source-map', 
  
      entry: {
          app: ["./src/index.ts"]
      },
  
      output: {
          libraryTarget: "umd",
          library: "onix",
          path: path.join(__dirname, "public/js"),
          filename: "app.[name].js"
      },
  
      plugins: [
          new CleanWebpackPlugin()
      ],
  
      module: {
          rules: [
              {
                  test: /\.tsx?$/,
                  use: 'ts-loader',
                  exclude: /node_modules/
              },
              {
                  type: 'javascript/auto',
                  test: /\.json$/,
                  loader: 'json-loader',
              },
          ]
      },
  
      resolve: {
          extensions: ['.tsx', '.ts', '.js', '.json'],
          modules: ['node_modules']
      }
  };