Skip to content

Warning when overriding production plugin config #1587

@ryankask

Description

@ryankask

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions