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
2020-07-29 09:09:33 +00: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 09:10:47 +00:00
Your feature flag can now be:
2019-06-27 17:52:02 +00:00
- [Made available to the frontend ](../feature_flags/development.md#frontend ) via the `gon`
2020-07-29 09:09:33 +00:00
- Queried in [tests ](../feature_flags/development.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 )
2019-06-27 17:52:02 +00:00
- [Manage feature flags ](../feature_flags/process.md )
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 ).