forked from tableau/extensions-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
46 lines (44 loc) · 1.36 KB
/
webpack.config.js
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
41
42
43
44
45
46
'use strict';
const path = require('path');
module.exports = {
entry: {
annotation: './Samples-Typescript/Dashboard/Annotation/annotation.ts',
dashboardLayout: './Samples-Typescript/Dashboard/DashboardLayout/dashboardLayout.ts',
datasources: './Samples-Typescript/Dashboard/DataSources/datasources.ts',
filtering: './Samples-Typescript/Dashboard/Filtering/filtering.ts',
formatting: './Samples-Typescript/Dashboard/Formatting/formatting.tsx',
moveAndResize: './Samples-Typescript/Dashboard/MoveAndResize/moveAndResize.tsx',
parameters: './Samples-Typescript/Dashboard/Parameters/parameters.ts',
dashboardObjectVisibility: './Samples-Typescript/Dashboard/DashboardObjectVisibility/dashboardObjectVisibility.tsx',
replayAnimation: './Samples-Typescript/Dashboard/ReplayAnimation/replayAnimation.tsx',
vizImage: './Samples-Typescript/Dashboard/VizImage/vizImage.ts'
},
mode: 'production',
output: {
filename: '[name].js',
path: __dirname + '/dist'
},
module: {
rules: [
{
test: /\.ts(x?)$/,
use: 'ts-loader'
}
]
},
resolve: {
modules: [__dirname, 'node_modules'],
extensions: [
'*', '.ts', '.js', '.tsx'
]
},
optimization: {
minimize: false
},
devtool: 'inline-source-map',
performance: {
hints: false,
maxEntrypointSize: 370,
maxAssetSize: 370
}
};