-
Notifications
You must be signed in to change notification settings - Fork 5
/
production.nwb.config.js
61 lines (57 loc) · 1.49 KB
/
production.nwb.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
let path = require('path')
// Customize global RT settings here
let reactToolboxVariables = {
'button-height': '30px'
}
module.exports = {
type: 'react-component',
babel: {
runtime: 'polyfill',
},
karma:{
// browsers: ['Chrome'],
config(config) {
// Change config as you wish
config.browserNoActivityTimeout= 30000
// You MUST return the edited config object
return config
}
},
webpack: {
define:{
__SERVER__:JSON.stringify('https://xenageneset.berkeleybop.io/xena-analysis'),
__GOOGLE_APP_ID__:JSON.stringify('654629507592-7fbpjgsomq6g1lofno7p73qkjqrt62c9.apps.googleusercontent.com'),
__VERSION__: JSON.stringify(require('./package.json').version)
},
styles: {
css: [
// Create a rule which provides the specific setup react-toolbox v2 needs
{
include: [/react-toolbox/,/node_modules/, path.join(__dirname, 'src')],
// css-loader options
css: {
modules: true,
localIdentName: '[name]--[local]--[hash:base64:8]',
sourceMap: true
},
// postcss-loader options
postcss: {
plugins: [
require('postcss-cssnext')({
features: {
customProperties: {
variables: reactToolboxVariables
}
}
})
]
}
},
]
}
},
npm: {
esModules: true,
umd: false
}
}