2020-10-30 14:08:56 -04:00
---
stage: none
2020-11-17 10:09:28 -05:00
group: Development
2020-11-26 01:09:20 -05: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 14:08:56 -04:00
---
2018-03-07 13:32:38 -05:00
# Tips
2018-05-29 12:40:18 -04:00
## Clearing production compiled assets
To clear production compiled assets created with `yarn webpack-prod` you can run:
2020-03-25 02:07:58 -04:00
```shell
2018-05-29 12:40:18 -04:00
yarn clean
```
2019-03-20 05:10:47 -04:00
## Creating feature flags in development
2020-07-29 05:09:33 -04:00
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-locally-in-development ).
2019-03-20 05:10:47 -04:00
Your feature flag can now be:
2019-06-27 13:52:02 -04:00
- [Made available to the frontend ](../feature_flags/development.md#frontend ) via the `gon`
2020-07-29 05:09:33 -04:00
- Queried in [tests ](../feature_flags/development.md#feature-flags-in-tests )
2020-04-08 02:09:54 -04:00
- Queried in HAML templates and Ruby files via the `Feature.enabled?(:my_shiny_new_feature_flag)` method
2019-03-20 05:10:47 -04:00
### More on feature flags
2019-05-19 19:27:22 -04:00
- [Deleting a feature flag ](../../api/features.md#delete-a-feature )
2019-06-27 13:52:02 -04:00
- [Manage feature flags ](../feature_flags/process.md )
2019-05-19 19:27:22 -04:00
- [Feature flags API ](../../api/features.md )
2019-12-12 19:08:05 -05:00
## Running tests locally
This can be done as outlined by the [frontend testing guide ](../testing_guide/frontend_testing.md#running-frontend-tests ).