forked from awslabs/diagram-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.static.js
More file actions
35 lines (34 loc) · 804 Bytes
/
webpack.static.js
File metadata and controls
35 lines (34 loc) · 804 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
const baseConfig = require('./webpack.integ.js');
const path = require('path');
const merge = require('webpack-merge').merge;
module.exports = merge(baseConfig, {
mode: 'production',
bail: true,
output: {
path: path.resolve(__dirname, 'dist/examples'),
},
module: {
rules: [
{
test: /\.tsx?$/,
include: [
/src/
],
exclude: [
/node_modules/,
/\.spec\.tsx?$/
],
enforce: 'post',
loader: 'istanbul-instrumenter-loader',
options: {
esModules: true
}
}
]
},
stats: {
// This is because of a limitation in ts-loader
// https://github.com/TypeStrong/ts-loader#transpileonly-boolean-defaultfalse
warningsFilter: /export .* was not found in/
}
});