text: module.exports = (env, options) => {
      return {
          entry: {
              SimpleRangeSlider: './src/Plugin/Plugin.ts',
              demoPanel: './src/Demo_Panel/Panel.ts'
          },
  
          resolve: {
              extensions: ['.ts', '.js'],
          },
  
          output: {
              library: 'SimpleRangeSlider',
              libraryTarget: 'umd',
              libraryExport: 'default',
              filename: options.mode === 'development' ? '[name].js' : '[name].min.js',
              path: __dirname + '/dist',
          },
          devServer: {
              contentBase: __dirname + '/docs',
              compress: true,
              port: 9090 
          },
          mode: options.mode,
          devtool: options.mode === 'development' ? 'inline-source-map' : '',
  
          module: {
              rules: [
                  {
                      test: /\.ts$/,
                      use: 'ts-loader',
                      exclude: [/node_modules/, /\.spec\.ts$/],
                  },
              ]
          }
      }
  }