fix: build defaults

This commit is contained in:
cha0s 2020-12-20 12:08:39 -06:00
parent cbf7f08b69
commit 6793108e0b

View File

@ -3,4 +3,6 @@
// Neutrino's inspect feature can be used to view/export the generated configuration.
const neutrino = require('neutrino');
module.exports = neutrino(require(`${__dirname}/.neutrinorc`)).webpack();
const configOfConfigs = require(`${__dirname}/.neutrinorc`);
const configs = Array.isArray(configOfConfigs) ? configOfConfigs : [configOfConfigs];
module.exports = configs.map((config) => neutrino(config).webpack());