| 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",
|
| ]
|
| }
|
|
|
|
|