text: const CopyWebpackPlugin = require("copy-webpack-plugin");
  const { CleanWebpackPlugin } = require("clean-webpack-plugin");
  const MinifyPlugin = require("babel-minify-webpack-plugin");
  const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
  
  const path = require("path");
  
  module.exports = {
      mode: "production",
      resolve: {
          symlinks: false,
          extensions: [".ts", ".js", ".json"]
      },
      entry: {
          app: "./src/index.ts"
      },
      output: {
          path: path.join(__dirname, "/dist/"),
          filename: "index.js"
      },
      module: {
          rules: [{
              test: /\.less$/i,
              use: [
                  { loader: "style-loader" },
                  { loader: "css-loader" },
                  { loader: "less-loader" }
              ],
          }, {
              test: /\.tsx?$/,
              use: "ts-loader",
              exclude: /node_modules/
          }]
      },
      plugins: [
          new CopyWebpackPlugin([
              { from: "static" }
          ]),
          new CleanWebpackPlugin({ verbose: true }),
          new MinifyPlugin({ mangle: { topLevel: true } }),
          new LodashModuleReplacementPlugin()
      ],
      devtool: "source-map"
  };
  