Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Warning when overriding production plugin config #1587

Open
ryankask opened this issue Dec 14, 2016 · 3 comments
Open

Warning when overriding production plugin config #1587

ryankask opened this issue Dec 14, 2016 · 3 comments
Labels

Comments

@ryankask
Copy link

When I run brunch build --production I see the following warning: warn: config.overrides.production.plugins.babel: perhaps you meant on, off, only, npm

This is what I'm trying to use:

overrides: {
  production: {
    plugins: {
      babel: {
        presets: ['latest', 'babili'],
      },
    },
  },
},

It looks like there is a production-specific overrides schema https://github.com/brunch/brunch/blob/master/lib/utils/config-validate.js so that might be causing issues.

@denysdovhan
Copy link
Contributor

Hey, @ryankask! Thanks for reaching out!

We're working on this issue, so don't worry too much — it will be fixed ASAP. Problem is quite obvious and shouldn't take a lot of time.

@aMarCruz
Copy link

This issue still exists.

@aramark-pivotal
Copy link

Hello. My env variable is called "local" I am running like brunch build --env local in the config I have

exports.overrides = {
    local:  {
        plugins: {
            pug: {
                locals: { SOME_VAR: "SOME VALUE" },
                pugRuntime: false
            }
        }
    }
}

and I see
19:55:58 - warn: config.overrides.local.plugins.pug: perhaps you meant on, off, npm
Is this expected? It seems to work properly but I'd like to resolve this warning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

5 participants