mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
18 lines
454 B
JavaScript
18 lines
454 B
JavaScript
'use strict';
|
|
|
|
const deepmerge = require('deepmerge');
|
|
|
|
const isSimpleObject = ({constructor}) => constructor === Object;
|
|
const {isArray} = Array;
|
|
const isMergeableObject = (a) => isArray(a) || isSimpleObject(a);
|
|
|
|
const htmlConfig = require('./.webpack/html');
|
|
const cssConfig = require('./.webpack/css');
|
|
const jsConfig = require('./.webpack/js');
|
|
|
|
module.exports = deepmerge.all([
|
|
jsConfig,
|
|
htmlConfig,
|
|
cssConfig,
|
|
], {isMergeableObject});
|
|
|