forked from polkadot-cloud/polkadot-staking-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
40 lines (38 loc) · 808 Bytes
/
webpack.config.js
File metadata and controls
40 lines (38 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2022 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: Apache-2.0
// eslint-disable-next-line @typescript-eslint/no-var-requires
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
module: {
rules: [
{
test: /\.worker\.ts$/,
loader: 'worker-loader',
options: {
inline: true,
},
},
{
test: /\.ts$/,
loader: 'ts-loader',
options: {
inline: true,
},
},
],
},
resolve: {
extensions: ['.ts', '.js'],
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin({
sourceMap: true,
terserOptions: {
compress: {
drop_console: true,
},
}
})],
},
};