mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
ddcb441268
Closes #3161 - Add a config.js file for the client which is used to configure Ember.Application during runtime. The correct version of config.js is copied into place by grunt via the copy:(dev|prod) task from either config-dev.js or config-prod.js. - Serve minified and production versions of libraries where applicable including handlebars-runtime and ember-prod. - Bundle third party libraries into vendor.min.js. - Bundle Ghost's Ember app and templates into ghost.min.js - Remove all fixture data and code from the client.
16 lines
328 B
JavaScript
16 lines
328 B
JavaScript
function configureApp(App) {
|
|
if (!App instanceof Ember.Application) {
|
|
return;
|
|
}
|
|
|
|
App.reopen({
|
|
LOG_ACTIVE_GENERATION: true,
|
|
LOG_MODULE_RESOLVER: true,
|
|
LOG_TRANSITIONS: true,
|
|
LOG_TRANSITIONS_INTERNAL: true,
|
|
LOG_VIEW_LOOKUPS: true
|
|
});
|
|
}
|
|
|
|
export default configureApp;
|