text: const path = require('path');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const { CleanWebpackPlugin } = require('clean-webpack-plugin');
  const CopyWebpackPlugin = require('copy-webpack-plugin');
  
  module.exports = {
      mode: 'development',
      entry: {
          op: './test/op/opTest.js',
          model: './test/model/modelTest.js'
      },
      devtool: 'inline-source-map',
      devServer: {
          host: '0.0.0.0',
          port: 9000
      },
      plugins: [
          new CleanWebpackPlugin({
              dangerouslyAllowCleanPatternsOutsideProject: true
          }),
          new HtmlWebpackPlugin({
              filename: 'model.html',
              chunks: ['model'],
              template: './test/model/index.html'
          }),
          new HtmlWebpackPlugin({
              filename: 'op.html',
              chunks: ['op'],
              template: './test/op/index.html'
          }),
          new CopyWebpackPlugin({
              patterns: [{
                  from: path.resolve(__dirname, '../../../models/convertedModels')
              }]
          })
      ],
      resolve: {
          // Add ".ts" and ".tsx" as resolvable extensions.
          extensions: ['.ts', '.js'],
          alias: {
              '@paddlejs/paddlejs-core': path.resolve(__dirname, '../paddlejs-core/src/')
          }
      },
      module: {
          rules: [
              {
                  test: /\.ts$/,
                  loader: 'ts-loader',
                  exclude: /node_modules/
              }
          ]
      },
      output: {
          filename: '[name].js',
          path: path.resolve(__dirname, 'dist')
      }
  };
  