fda3149dda
Split the FF docs in 3 separate docs to cover 3 different use-cases.
25 lines
845 B
Markdown
25 lines
845 B
Markdown
# Tips
|
|
|
|
## Clearing production compiled assets
|
|
|
|
To clear production compiled assets created with `yarn webpack-prod` you can run:
|
|
|
|
```
|
|
yarn clean
|
|
```
|
|
|
|
## Creating feature flags in development
|
|
|
|
The process for creating a feature flag is the same as [enabling a feature flag in development](../feature_flags/development.md#enabling-a-feature-flag-in-development).
|
|
|
|
Your feature flag can now be:
|
|
|
|
- [Made available to the frontend](../feature_flags/development.md#frontend) via the `gon`
|
|
- Queried in [tests](../feature_flags/development.md#specs)
|
|
- Queried in HAML templates and ruby files via the `Feature.enabled?(:my_shiny_new_feature_flag)` method
|
|
|
|
### More on feature flags
|
|
|
|
- [Deleting a feature flag](../../api/features.md#delete-a-feature)
|
|
- [Manage feature flags](../feature_flags/process.md)
|
|
- [Feature flags API](../../api/features.md)
|