mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 21:05:12 +08:00
a01b1dd648
This makes a small improvement to 'cold cache' ember-cli build times, and a large improvement to 'warm cache' build times The ember-auto-import update means that vendor is now split into multiple files for efficiency. These are named `chunk.*`, and should be included immediately after the `vendor.js` file. This commit also updates the rails app to render script tags for these chunks. This change was previously merged, and caused memory-related errors on RAM-constrained machines. This was because Webpack 5 switches from multiple worker processes to a single multi-threaded process. This meant that it was hitting node's default heap size limit (~500mb on a 1GB RAM server). Discourse's standard install procedure recommends adding 2GB swap to 1GB-RAM machines, so we can afford to override's Node's default via the `--max-old-space-size` flag.
27 lines
971 B
Plaintext
27 lines
971 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>QUnit Test Runner</title>
|
|
<%= discourse_color_scheme_stylesheets %>
|
|
<%= discourse_stylesheet_link_tag(:desktop, theme_id: nil) %>
|
|
<%= discourse_stylesheet_link_tag(:test_helper, theme_id: nil) %>
|
|
<%= preload_script "locales/#{I18n.locale}" %>
|
|
<%= preload_vendor_scripts %>
|
|
<%= preload_script "application" %>
|
|
<%= preload_script "admin" %>
|
|
<%= preload_script "discourse/tests/test-support-rails" %>
|
|
<%= preload_script "discourse/tests/test-helpers-rails" %>
|
|
<%= preload_script "discourse/tests/active-plugins" %>
|
|
<%= preload_script "discourse/tests/core-tests" %>
|
|
<%= preload_script "discourse/tests/plugin-tests" %>
|
|
<%= preload_script "discourse/tests/test_starter" %>
|
|
<%= csrf_meta_tags %>
|
|
<meta property="og:title" content="">
|
|
<meta property="og:url" content="">
|
|
</head>
|
|
<body>
|
|
<div id="qunit"></div>
|
|
<div id="qunit-fixture"></div>
|
|
</body>
|
|
</html>
|