const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  mode: 'development',
  entry: {
    customizer: './js/customizer.js',
    viewer: './js/viewer.js',
    adminScanner: './js/model-scanner.js',
    materialPreview: './js/material-preview.js',
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve(__dirname, 'dist'),
  },
  optimization: {
    minimizer: [
      new TerserPlugin({
        extractComments: false,
      }),
    ],
    splitChunks: false,
  },
  watch: false
};