mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature(webpack) deepmerge -> webpack-merge
This commit is contained in:
parent
1e716ef64f
commit
567a14f93d
2 changed files with 4 additions and 7 deletions
|
|
@ -1,18 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
const deepmerge = require('deepmerge');
|
||||
|
||||
const isSimpleObject = ({constructor}) => constructor === Object;
|
||||
const {isArray} = Array;
|
||||
const isMergeableObject = (a) => isArray(a) || isSimpleObject(a);
|
||||
const merge = require('webpack-merge');
|
||||
|
||||
const htmlConfig = require('./.webpack/html');
|
||||
const cssConfig = require('./.webpack/css');
|
||||
const jsConfig = require('./.webpack/js');
|
||||
|
||||
module.exports = deepmerge.all([
|
||||
module.exports = merge([
|
||||
jsConfig,
|
||||
htmlConfig,
|
||||
cssConfig,
|
||||
], {isMergeableObject});
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue