# Disponibilidade de ativos comuns no Discourse: diferença entre desenvolvimento e produção?

**URL:** <https://meta.discourse.org/t/discourse-common-asset-availability-difference-between-development-and-production/107490>\
**Category:** Development\
**Created:** [Janeiro 25, 2019, 2:37am UTC](https://meta.discourse.org/t/discourse-common-asset-availability-difference-between-development-and-production/107490 "2019-01-25T02:37:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [Janeiro 28, 2019, 11:23pm UTC](https://meta.discourse.org/t/discourse-common-asset-availability-difference-between-development-and-production/107490/3 "2019-01-28T23:23:55Z")

</div>

Sorry, I meant to respond to this topic when I saw it last week, but completely forgot. You may be interested in how we compile templates for themes:

> <https://github.com/discourse/discourse/blob/main/lib/theme_javascript_compiler.rb#L163-L189>

We have extended versions of the compilers for some theme-specific functionality, but for basic use you can use `Barber::Precompiler` for raw templates, and `Barber::Ember::Precompiler` for ember templates.

It is indeed confusing that the compiler is loaded on the client in dev, but not production 🤔. It seems to me that it would be better to keep things the same, but maybe there is some reason for it.

---

_[View the full topic](https://meta.discourse.org/t/discourse-common-asset-availability-difference-between-development-and-production/107490)._
