Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6296)

Unified Diff: chrome/browser/resources/settings/BUILD.gn

Issue 2746033005: MD Settings: Separate code to be loaded lazily to its own lazy_load.html (Closed)
Patch Set: Fix crisper output. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/basic_page/basic_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/BUILD.gn
diff --git a/chrome/browser/resources/settings/BUILD.gn b/chrome/browser/resources/settings/BUILD.gn
index c1de855568d1def79a3788c3f43139ee35a3e5f4..30c997005ad28b1c6330e91c16fde41d8a9d3b1d 100644
--- a/chrome/browser/resources/settings/BUILD.gn
+++ b/chrome/browser/resources/settings/BUILD.gn
@@ -2,14 +2,15 @@ import("../vulcanize.gni")
import("//tools/grit/grit_rule.gni")
import("//chrome/common/features.gni")
-vulcanized_unbuilt = "vulcanized.unbuilt.html"
+app_unbuilt = "vulcanized.unbuilt.html"
+lazy_load_unbuilt = "lazy_load.vulcanized.unbuilt.html"
settings_pak_file = "settings_resources.pak"
unpak_folder = "settings_resources.unpak"
-vulcanize("vulcanize") {
+vulcanize("vulcanize_app") {
host = "md-settings"
html_in_file = "settings.html"
- html_out_file = vulcanized_unbuilt
+ html_out_file = app_unbuilt
insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">"
input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
js_out_file = "crisper.js"
@@ -19,6 +20,21 @@ vulcanize("vulcanize") {
]
}
+vulcanize("vulcanize_lazy_load") {
+ host = "md-settings"
+ html_in_file = "lazy_load.html"
+ html_out_file = lazy_load_unbuilt
+ insert_in_head = "<base href=\"chrome://\$i18n{hostname}\">"
+ input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
+ js_out_file = "lazy_load.crisper.js"
+
+ excludes = [ "/settings.html" ]
+
+ deps = [
+ ":unpak",
+ ]
+}
+
unpak("unpak") {
pak_file = settings_pak_file
out_folder = unpak_folder
@@ -29,10 +45,17 @@ unpak("unpak") {
}
polymer_css_build("build") {
- input_files = [ vulcanized_unbuilt ]
- output_files = [ "vulcanized.html" ]
+ input_files = [
+ app_unbuilt,
+ lazy_load_unbuilt,
+ ]
+ output_files = [
+ "vulcanized.html",
+ "lazy_load.vulcanized.html",
+ ]
deps = [
- ":vulcanize",
+ ":vulcanize_app",
+ ":vulcanize_lazy_load",
]
}
« no previous file with comments | « no previous file | chrome/browser/resources/settings/basic_page/basic_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698