forked from getguesstimate/guesstimate-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomConfig.js
30 lines (28 loc) · 878 Bytes
/
customConfig.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
var webpack = require('webpack')
var path = require('path')
var lodash = require('lodash')
var useDevVariables = new webpack.DefinePlugin({
__DEV__: JSON.stringify(JSON.parse(process.env.BUILD_DEV || 'true')),
__API_ENV__: JSON.stringify(process.env.API_ENV || 'development'),
__SEGMENT_API_ENV__: JSON.stringify(process.env.SEGMENT_API_ENV || 'development'),
})
var lodashPlugin = new webpack.ProvidePlugin({_: 'lodash'})
module.exports = {
plugins: [useDevVariables, lodashPlugin],
resolutions: {
root: path.resolve('./src'),
alias: {
gComponents: path.resolve('./src/components'),
gEngine: path.resolve('./src/lib/engine'),
gModules: path.resolve('./src/modules'),
lib: path.resolve('./src/lib'),
servers: path.resolve('./src/server')
},
extensions: [
'',
'.js',
'.jsx',
'.json'
],
},
}