mirror of https://github.com/embarklabs/embark.git
24 lines
409 B
JavaScript
24 lines
409 B
JavaScript
|
/* global module require */
|
||
|
|
||
|
const cloneDeep = require('lodash.clonedeep');
|
||
|
|
||
|
module.exports = (api) => {
|
||
|
const env = api.env();
|
||
|
|
||
|
const base = {};
|
||
|
|
||
|
const node = cloneDeep(base);
|
||
|
Object.assign(node, {
|
||
|
ignore: [
|
||
|
'src/lib/modules/pipeline/babel-loader-overrides.js',
|
||
|
'src/lib/modules/pipeline/webpack.config.js'
|
||
|
]
|
||
|
});
|
||
|
|
||
|
if (env === 'node') {
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
return base;
|
||
|
};
|