Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / colors / webpack.config.js
blobaa3945a5d9f197b75e5a41c5312a6cc6604fa628
1 const path = require('path');
3 module.exports = {
4     entry: './tool/tool.ts',
5     stats: 'minimal',
6     mode: 'production',
7     module: {
8         rules: [
9             {
10                 test: /\.ts?$/,
11                 exclude: /node_modules/,
12                 use: {
13                     loader: 'ts-loader',
14                     options: { configFile: 'tsconfig.tool.json' },
15                 },
16             },
17         ],
18     },
19     resolve: {
20         extensions: ['.ts'],
21     },
22     output: {
23         filename: 'bundle.js',
24         path: path.resolve(__dirname, 'tool'),
25     },