Hyper: Hyper should fallback to default config when not specified in `~/.hyper.js`

Created on 27 Feb 2017  路  4Comments  路  Source: vercel/hyper

My ~./hyper.js is:

'use strict';
module.exports = {
    config: {
        fontSize: 16,
        fontFamily: 'Menlo'
    },
    plugins: [
        'hyper-snazzy'
    ]
};

Since I deleted default config like the css option, that property is now undefined in decorateConfig for plugins. Hyper should provide default values in the core for all config properties.

For now, I'll have to specify an empty css: '' option so plugins/themes using config.css doesn't break.

good first issue help wanted Bug

Most helpful comment

I created PR

All 4 comments

Could be integrated into #1509

Hi, is anyone is working on this bug ?

I created PR

Fixed by #2126
Thank you so much @okonek 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

stan-stripe picture stan-stripe  路  3Comments

weabot picture weabot  路  3Comments

dbkaplun picture dbkaplun  路  3Comments

alejandrofloresm picture alejandrofloresm  路  3Comments