UNPKG
builder-we-app-canary
Version:
latest (0.0.1)
0.0.1
The KOS Builder Module for Choice MicroApp, use latest dependencies
builder-we-app-canary
/
webpack
/
util
/
resolveAppConfig.js
11 lines
(10 loc)
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
get =
require
(
'lodash/get'
);
const
{
SAAS_CONFIG
} =
require
(
'./const'
);
const
CB
=
get
(
SAAS_CONFIG
,
'webpack.config'
,
''
);
module
.
exports
=
function
(
baseConfig
) {
if
(
typeof
CB
===
'function'
) {
return
CB
(baseConfig); }
else
{
return
baseConfig; } };