@videinfra/static-website-builder 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/get-config.js
CHANGED
|
@@ -159,7 +159,7 @@ function itterateConfig(config, fn) {
|
|
|
159
159
|
function mergeConfigMode(config) {
|
|
160
160
|
if ('production' in config || 'development' in config) {
|
|
161
161
|
const mode = global.production ? 'production' : 'development';
|
|
162
|
-
const value = merge(config, config[mode]);
|
|
162
|
+
const value = typeof config[mode] === 'undefined' ? config : merge(config, config[mode]);
|
|
163
163
|
|
|
164
164
|
if (value !== false) {
|
|
165
165
|
return omit(value, ['production', 'development']);
|
package/package.json
CHANGED