Skip to content

process.env.NODE_ENV is not set for PostCSS Preset Env #1201

@Daniel3711997

Description

@Daniel3711997

If you have a package.json key like this:

"browserslist": {
      "production": [
          ">0.2%",
          "not dead",
          "not op_mini all"
      ],
      "development": [
          "last 1 chrome version",
          "last 1 firefox version",
          "last 1 safari version"
      ]
  }

The PostCSS Preset Env plugin does not load the 'development' key in development mode but 'production' :)

Possible fix, manual set NODE_ENV or process.env.NODE_ENV = 'development' or 'production'

or manually set BROWSERSLIST_ENV

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions