-
Notifications
You must be signed in to change notification settings - Fork 167
/
webpack.config.js
37 lines (31 loc) · 919 Bytes
/
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
/* @flow */
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config';
const FILE_NAME = 'smart-payment-buttons';
const MODULE_NAME = 'spb';
export const WEBPACK_CONFIG = getWebpackConfig({
filename: `${ FILE_NAME }.js`,
modulename: MODULE_NAME,
minify: false,
libraryTarget: 'window'
});
export const WEBPACK_CONFIG_MIN = getWebpackConfig({
filename: `${ FILE_NAME }.min.js`,
modulename: MODULE_NAME,
minify: true,
libraryTarget: 'window',
vars: {
__MIN__: true
}
});
export const WEBPACK_CONFIG_TEST = getWebpackConfig({
modulename: MODULE_NAME,
test: true,
options: {
devtool: 'inline-source-map'
},
vars: {
__TEST__: true
}
});
export default [ WEBPACK_CONFIG, WEBPACK_CONFIG_MIN ];