2020-10-30 18:08:56 +00:00
---
stage: none
2020-11-17 15:09:28 +00:00
group: Development
2020-11-26 06:09:20 +00:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-10-30 18:08:56 +00:00
---
2018-03-07 18:32:38 +00:00
# Tips
2018-05-29 16:40:18 +00:00
## Clearing production compiled assets
To clear production compiled assets created with `yarn webpack-prod` you can run:
2020-03-25 06:07:58 +00:00
```shell
2018-05-29 16:40:18 +00:00
yarn clean
```
2019-03-20 09:10:47 +00:00
## Creating feature flags in development
2021-03-11 21:09:09 +00:00
The process for creating a feature flag is the same as [enabling a feature flag in development ](../feature_flags/index.md#enabling-a-feature-flag-locally-in-development ).
2019-03-20 09:10:47 +00:00
Your feature flag can now be:
2021-03-11 21:09:09 +00:00
- [Made available to the frontend ](../feature_flags/index.md#frontend ) via the `gon`
- Queried in [tests ](../feature_flags/index.md#feature-flags-in-tests )
2020-04-08 06:09:54 +00:00
- Queried in HAML templates and Ruby files via the `Feature.enabled?(:my_shiny_new_feature_flag)` method
2019-03-20 09:10:47 +00:00
### More on feature flags
2019-05-19 23:27:22 +00:00
- [Deleting a feature flag ](../../api/features.md#delete-a-feature )
2021-03-25 15:09:35 +00:00
- [Manage feature flags ](https://about.gitlab.com/handbook/product-development-flow/feature-flag-lifecycle/ )
2019-05-19 23:27:22 +00:00
- [Feature flags API ](../../api/features.md )
2019-12-13 00:08:05 +00:00
## Running tests locally
This can be done as outlined by the [frontend testing guide ](../testing_guide/frontend_testing.md#running-frontend-tests ).