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

Side by Side Diff: third_party/closure_compiler/closure_args.gni

Issue 2179033002: Strip comments and whitespace from javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to screen.js (no longer needed for this CL) Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/closure_compiler/compile2.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GYP version: third_party/closure_compiler/closure_args.gypi 5 # GYP version: third_party/closure_compiler/closure_args.gypi
6 default_closure_args = [
7 "compilation_level=SIMPLE_OPTIMIZATIONS",
8 6
7 # Args for all uses of the closure compiler
8 common_closure_args = [
9 "extra_annotation_name=attribute", 9 "extra_annotation_name=attribute",
10 "extra_annotation_name=demo", 10 "extra_annotation_name=demo",
11 "extra_annotation_name=element", 11 "extra_annotation_name=element",
12 "extra_annotation_name=group", 12 "extra_annotation_name=group",
13 "extra_annotation_name=hero", 13 "extra_annotation_name=hero",
14 "extra_annotation_name=homepage", 14 "extra_annotation_name=homepage",
15 "extra_annotation_name=status", 15 "extra_annotation_name=status",
16 "extra_annotation_name=submodule", 16 "extra_annotation_name=submodule",
17 17
18 "source_map_format=V3",
19 ]
20
21 # Additional closure args for performing full checks.
22 checking_closure_args = [
23 "compilation_level=SIMPLE_OPTIMIZATIONS",
24
18 "jscomp_error=accessControls", 25 "jscomp_error=accessControls",
19 "jscomp_error=ambiguousFunctionDecl", 26 "jscomp_error=ambiguousFunctionDecl",
20 "jscomp_error=checkTypes", 27 "jscomp_error=checkTypes",
21 "jscomp_error=checkVars", 28 "jscomp_error=checkVars",
22 "jscomp_error=constantProperty", 29 "jscomp_error=constantProperty",
23 "jscomp_error=deprecated", 30 "jscomp_error=deprecated",
24 "jscomp_error=externsValidation", 31 "jscomp_error=externsValidation",
25 "jscomp_error=globalThis", 32 "jscomp_error=globalThis",
26 "jscomp_error=invalidCasts", 33 "jscomp_error=invalidCasts",
27 "jscomp_error=missingProperties", 34 "jscomp_error=missingProperties",
28 "jscomp_error=missingReturn", 35 "jscomp_error=missingReturn",
29 "jscomp_error=nonStandardJsDocs", 36 "jscomp_error=nonStandardJsDocs",
30 "jscomp_error=suspiciousCode", 37 "jscomp_error=suspiciousCode",
31 "jscomp_error=undefinedNames", 38 "jscomp_error=undefinedNames",
32 "jscomp_error=undefinedVars", 39 "jscomp_error=undefinedVars",
33 "jscomp_error=unknownDefines", 40 "jscomp_error=unknownDefines",
34 "jscomp_error=uselessCode", 41 "jscomp_error=uselessCode",
35 "jscomp_error=visibility", 42 "jscomp_error=visibility",
36 43
37 "language_in=ECMASCRIPT6_STRICT", 44 "language_in=ECMASCRIPT6_STRICT",
38 "language_out=ECMASCRIPT5_STRICT", 45 "language_out=ECMASCRIPT5_STRICT",
39 46
40 "polymer_pass", 47 "polymer_pass",
48 ]
41 49
42 "source_map_format=V3", 50 # Additional closure arguments for minifying
51 minifying_closure_args = [
52 "compilation_level=WHITESPACE_ONLY",
53
54 "language_in=ECMASCRIPT6",
55 "language_out=ECMASCRIPT6",
43 ] 56 ]
44 57
58 # For compatibility with old uses.
59 default_closure_args = common_closure_args + checking_closure_args
60
45 default_disabled_closure_args = [ 61 default_disabled_closure_args = [
46 "jscomp_off=duplicate", 62 "jscomp_off=duplicate",
47 "jscomp_off=misplacedTypeAnnotation", 63 "jscomp_off=misplacedTypeAnnotation",
48 ] 64 ]
OLDNEW
« no previous file with comments | « no previous file | third_party/closure_compiler/compile2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698