1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Precompile inline templates

Removing the in-browser compiler will save up to 30 kB (after
minification + gzipping) and boost startup performance. Win!
This commit is contained in:
Toby Zerner
2015-03-28 17:37:41 +10:30
parent 4c85e60894
commit 5a98faf78c
4 changed files with 8 additions and 10 deletions

View File

@@ -2,13 +2,7 @@
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
vendorFiles: {
'handlebars.js': null
}
});
app.import('bower_components/ember/ember-template-compiler.js');
var app = new EmberApp();
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('bower_components/spin.js/spin.js');