Files
mushroom-strategy/webpack.config.ts
T

34 lines
620 B
TypeScript
Raw Normal View History

2023-11-22 21:02:56 +01:00
// noinspection JSUnusedGlobalSymbols
import path from 'path';
import webpack from 'webpack';
const config: webpack.Configuration = {
2025-05-13 07:01:26 +02:00
mode: 'production',
entry: './src/mushroom-strategy.ts',
2023-11-22 21:02:56 +01:00
output: {
clean: true,
2025-05-13 07:01:26 +02:00
filename: 'mushroom-strategy.js',
path: path.resolve(__dirname, 'dist'),
2023-11-22 21:02:56 +01:00
},
resolve: {
2025-05-13 07:01:26 +02:00
extensions: ['.ts', '.js'],
2023-11-22 21:02:56 +01:00
},
module: {
rules: [
{
2025-05-13 07:01:26 +02:00
test: /\.ts$/,
use: 'ts-loader',
2023-11-22 21:02:56 +01:00
exclude: /node_modules/,
},
],
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
};
export default config;