jaredpalmer / jaredpalmer/backpack

How to change env in 'backpack dev' or 'backpack build'

Open
#100 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

I want to change NODE_ENV in 'backpack build', this is my code, but it is not work.
```
cross-env NODE_ENV=test backpack build
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `cross-env NODE_ENV=test backpack build` and compare it with changing NODE_ENV for `backpack dev`. Determine how Backpack's build command receives environment variables. Done means documenting or correcting the command so the requested NODE_ENV is applied during the build.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.