summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
blob: 750ee4c89a7a477e91bbb6b234c2c458a298453e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
  mode: 'production',
  entry: {
    index: './web_src/js/index.js',
  },
  devtool: 'source-map',
  output: {
    path: path.resolve(__dirname, 'public/js'),
    filename: "[name].js"
  },
  optimization: {
    minimize: true,
    minimizer: [new TerserPlugin({ 
        sourceMap: true
     })],
  },
};