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

Unified Diff: third_party/WebKit/Source/core/BUILD.gn

Issue 2088123002: Minimize bundled user-agent CSS: html.css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest Created 4 years, 5 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
Index: third_party/WebKit/Source/core/BUILD.gn
diff --git a/third_party/WebKit/Source/core/BUILD.gn b/third_party/WebKit/Source/core/BUILD.gn
index 3f191eb4fc5b69f40a1a53143ef5a3e4c06a262b..a064c353370dc6c93b8dc0b96b5b64f6837f43ee 100644
--- a/third_party/WebKit/Source/core/BUILD.gn
+++ b/third_party/WebKit/Source/core/BUILD.gn
@@ -14,7 +14,10 @@ import("//third_party/WebKit/Source/core/core.gni")
import("//third_party/WebKit/Source/build/scripts/scripts.gni")
import("//third_party/WebKit/Source/platform/platform_generated.gni")
-visibility = [ "//third_party/WebKit/Source/*" ]
+visibility = [
+ "//third_party/WebKit/Source/*",
+ "//third_party/WebKit/public/*",
+]
rel_blink_core_gen_dir = rebase_path(blink_core_output_dir, root_build_dir)
@@ -958,6 +961,25 @@ action("make_core_generated_private_script_for_testing") {
deps = make_core_generated_deps
}
+action("make_minimized_css") {
+ script = "../build/scripts/minimize_css.py"
+
+ inputs = [
+ "css/html.css",
+ ]
+ outputs = [
+ "$blink_core_output_dir/html.css",
+ ]
+
+ args = [
+ "--output_dir",
+ rel_blink_core_gen_dir,
+ ]
+ args += rebase_path(inputs, root_build_dir)
+
+ deps = make_core_generated_deps
+}
+
# "HTMLEntityTable" in make_core_generated from GYP.
action("make_core_generated_html_entity_table") {
visibility = [] # Allow re-assignment of list.

Powered by Google App Engine
This is Rietveld 408576698