Skip to content

Commit

Permalink
Fix README to allow test as NODE_ENV (#1722)
Browse files Browse the repository at this point in the history
`NODE_ENV=test` is allowed by rails/webpacker#1563.
  • Loading branch information
tricknotes authored and gauravtiwari committed Oct 1, 2018
1 parent 68491e1 commit 2417b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ staging:
public_output_path: packs-staging
```

or, Webpacker will use production environment as a fallback environment for loading configurations. Please note, `NODE_ENV` can either be set to `production` or `development`.
or, Webpacker will use production environment as a fallback environment for loading configurations. Please note, `NODE_ENV` can either be set to `production`, `development` or `test`.
This means you don't need to create additional environment files inside `config/webpacker/*` and instead use webpacker.yml to load different configurations using `RAILS_ENV`.

For example, the below command will compile assets in production mode but will use staging configurations from `config/webpacker.yml` if available or use fallback production environment configuration:
Expand Down

0 comments on commit 2417b57

Please sign in to comment.