debian-mirror-gitlab/doc/development/new_fe_guide/tips.md

26 lines
801 B
Markdown
Raw Normal View History

2018-03-27 19:54:05 +05:30
# Tips
2018-11-08 19:23:39 +05:30
## Clearing production compiled assets
To clear production compiled assets created with `yarn webpack-prod` you can run:
```
yarn clean
```
2019-07-07 11:18:12 +05:30
## Creating feature flags in development
2019-09-04 21:01:54 +05:30
The process for creating a feature flag is the same as [enabling a feature flag in development](../feature_flags.md#enabling-a-feature-flag-in-development).
2019-07-07 11:18:12 +05:30
Your feature flag can now be:
2019-09-04 21:01:54 +05:30
- [made available to the frontend](../feature_flags.md#frontend) via the `gon`
- queried in [tests](../feature_flags.md#specs)
2019-07-07 11:18:12 +05:30
- queried in HAML templates and ruby files via the `Feature.enabled?(:my_shiny_new_feature_flag)` method
### More on feature flags
2019-09-04 21:01:54 +05:30
- [Deleting a feature flag](../../api/features.md#delete-a-feature)
- [Manage feature flags](../feature_flags.md)
- [Feature flags API](../../api/features.md)