forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.size.js
35 lines (30 loc) · 941 Bytes
/
webpack.config.size.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
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';
import { testGlobals, fundingEligibility } from './test/globals';
import globals from './globals';
const CHECK_SIZE_CONFIG = getWebpackConfig({
filename: 'size',
entry: './src/interface/button.js',
minify: false,
sourcemaps: false,
analyze: true,
vars: {
...globals,
...testGlobals,
__FUNDING_ELIGIBILITY__: fundingEligibility
}
});
const CHECK_SIZE_MIN_CONFIG = getWebpackConfig({
filename: 'size',
entry: './src/interface/button.js',
minify: true,
sourcemaps: false,
analyze: true,
vars: {
...globals,
...testGlobals,
__FUNDING_ELIGIBILITY__: fundingEligibility
}
});
export default [ CHECK_SIZE_CONFIG, CHECK_SIZE_MIN_CONFIG ];