discourse/discourse — pull request #2218 by riking (2014-04-02 01:43:45+00:00)
Title: Create empty files so we don't need to nuke tmp/cache in dev

Every startup in development mode, and when plugins are installed or updated in production mode, a blank file is updated, triggering recompilation of the plugin CSS and JS files.

I have some reservations about this. First of all, the inclusion of a `.plugindata` directory. As was said on meta: https://meta.discourse.org/t/brand-new-plugin-interface/8793/8?u=riking ![mo files mo problems](https://meta.discourse.org/uploads/meta_discourse/1519/ee4aeb2fdbb33509.jpg)

Also, is the line to add that directory, which I'm unsure about, to `Rails.configuration.assets.paths` in the right place? It can't go in `Discourse.activate_plugins!` because otherwise Rails will complain when you try to `require_asset` a path that isn't in the asset path (and rightly so!) when the plugins aren't loaded,