@flatjs/evolve 1.5.29 → 1.8.1-next.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +10 -46
  4. package/dist/constants.d.ts +15 -0
  5. package/dist/constants.js +1 -0
  6. package/dist/create-webpack/create-externals.d.ts +4 -0
  7. package/dist/create-webpack/create-externals.js +1 -0
  8. package/dist/create-webpack/create-optimization.d.ts +3 -0
  9. package/dist/create-webpack/create-optimization.js +1 -0
  10. package/dist/create-webpack/create-output.d.ts +3 -0
  11. package/dist/create-webpack/create-output.js +1 -0
  12. package/dist/create-webpack/create-performance.d.ts +2 -0
  13. package/dist/create-webpack/create-performance.js +1 -0
  14. package/dist/create-webpack/create-plugins.d.ts +4 -0
  15. package/dist/create-webpack/create-plugins.js +1 -0
  16. package/dist/create-webpack/create-resolve.d.ts +2 -0
  17. package/dist/create-webpack/create-resolve.js +1 -0
  18. package/dist/create-webpack/create-rule-sets.d.ts +4 -0
  19. package/dist/create-webpack/create-rule-sets.js +1 -0
  20. package/dist/create-webpack/load-webpack-config.d.ts +10 -0
  21. package/dist/create-webpack/load-webpack-config.js +1 -0
  22. package/dist/create-webpack/rule-sets/constants.d.ts +3 -0
  23. package/dist/create-webpack/rule-sets/constants.js +1 -0
  24. package/dist/create-webpack/rule-sets/rule-assets.d.ts +10 -0
  25. package/dist/create-webpack/rule-sets/rule-assets.js +1 -0
  26. package/dist/create-webpack/rule-sets/rule-css.d.ts +11 -0
  27. package/dist/create-webpack/rule-sets/rule-css.js +1 -0
  28. package/dist/create-webpack/rule-sets/rule-less.d.ts +9 -0
  29. package/dist/create-webpack/rule-sets/rule-less.js +1 -0
  30. package/dist/create-webpack/rule-sets/rule-scripts.d.ts +3 -0
  31. package/dist/create-webpack/rule-sets/rule-scripts.js +1 -0
  32. package/dist/create-webpack/rule-sets/rule-svg-icon.d.ts +6 -0
  33. package/dist/create-webpack/rule-sets/rule-svg-icon.js +1 -0
  34. package/dist/create-webpack/rule-sets/rule-utils.d.ts +7 -0
  35. package/dist/create-webpack/rule-sets/rule-utils.js +1 -0
  36. package/dist/create-webpack/types.d.ts +2 -0
  37. package/dist/create-webpack/types.js +1 -0
  38. package/dist/default-options.d.ts +2 -0
  39. package/dist/default-options.js +1 -0
  40. package/dist/define-config/define-config.d.ts +6 -0
  41. package/dist/define-config/define-config.js +1 -0
  42. package/dist/define-config/index.d.ts +1 -0
  43. package/dist/define-config/index.js +1 -0
  44. package/dist/dev-server/add-compiler-to-dev-server.d.ts +10 -0
  45. package/dist/dev-server/add-compiler-to-dev-server.js +1 -0
  46. package/dist/dev-server/create-app-page-route.d.ts +7 -0
  47. package/dist/dev-server/create-app-page-route.js +1 -0
  48. package/dist/dev-server/create-dev-server-compiler-tasks.d.ts +3 -0
  49. package/dist/dev-server/create-dev-server-compiler-tasks.js +1 -0
  50. package/dist/dev-server/create-dev-server-entries.d.ts +4 -0
  51. package/dist/dev-server/create-dev-server-entries.js +1 -0
  52. package/dist/dev-server/create-dev-server.d.ts +6 -0
  53. package/dist/dev-server/create-dev-server.js +1 -0
  54. package/dist/dev-server/index.d.ts +6 -0
  55. package/dist/dev-server/index.js +1 -0
  56. package/dist/dev-server/middlewares/create-page-middleware.d.ts +37 -0
  57. package/dist/dev-server/middlewares/create-page-middleware.js +1 -0
  58. package/dist/dev-server/middlewares/create-public-assets-middleware.d.ts +2 -0
  59. package/dist/dev-server/middlewares/create-public-assets-middleware.js +1 -0
  60. package/dist/dev-server/middlewares/index.d.ts +2 -0
  61. package/dist/dev-server/middlewares/index.js +1 -0
  62. package/dist/helpers/allow-px2rem-for-module.d.ts +3 -0
  63. package/dist/helpers/allow-px2rem-for-module.js +1 -0
  64. package/dist/helpers/assert-only-single-entry-item.d.ts +7 -0
  65. package/dist/helpers/assert-only-single-entry-item.js +1 -0
  66. package/dist/helpers/enable-bundle-hashname-for-module.d.ts +3 -0
  67. package/dist/helpers/enable-bundle-hashname-for-module.js +1 -0
  68. package/dist/helpers/get-bundle-file-name.d.ts +14 -0
  69. package/dist/helpers/get-bundle-file-name.js +1 -0
  70. package/dist/helpers/get-html-plugin-config.d.ts +12 -0
  71. package/dist/helpers/get-html-plugin-config.js +1 -0
  72. package/dist/helpers/get-pacakge-dir.d.ts +1 -0
  73. package/dist/helpers/get-pacakge-dir.js +1 -0
  74. package/dist/helpers/index.d.ts +14 -0
  75. package/dist/helpers/index.js +1 -0
  76. package/dist/helpers/merge-babel-options.d.ts +4 -0
  77. package/dist/helpers/merge-babel-options.js +1 -0
  78. package/dist/helpers/normalize-entry-map.d.ts +15 -0
  79. package/dist/helpers/normalize-entry-map.js +1 -0
  80. package/dist/helpers/open-page.d.ts +7 -0
  81. package/dist/helpers/open-page.js +1 -0
  82. package/dist/helpers/print-log.d.ts +2 -0
  83. package/dist/helpers/print-log.js +1 -0
  84. package/dist/helpers/refresh-evolve-mock-options.d.ts +3 -0
  85. package/dist/helpers/refresh-evolve-mock-options.js +1 -0
  86. package/dist/helpers/script-injects.d.ts +11 -0
  87. package/dist/helpers/script-injects.js +1 -0
  88. package/dist/helpers/should-enable-react-fast-refresh.d.ts +3 -0
  89. package/dist/helpers/should-enable-react-fast-refresh.js +1 -0
  90. package/dist/helpers/split-to-multi-compiler.d.ts +8 -0
  91. package/dist/helpers/split-to-multi-compiler.js +1 -0
  92. package/dist/index.d.ts +4 -0
  93. package/dist/index.js +1 -0
  94. package/dist/load-config/index.d.ts +1 -0
  95. package/dist/load-config/index.js +1 -0
  96. package/dist/load-config/load-evolve-config.d.ts +9 -0
  97. package/dist/load-config/load-evolve-config.js +1 -0
  98. package/dist/loaders/loader-icon.cjs +33 -0
  99. package/dist/loaders/loader-icon.d.cts +1 -0
  100. package/dist/main/env-verify.d.ts +2 -0
  101. package/dist/main/env-verify.js +1 -0
  102. package/dist/main/index.d.ts +3 -0
  103. package/dist/main/index.js +1 -0
  104. package/dist/main/prepare-build.d.ts +13 -0
  105. package/dist/main/prepare-build.js +1 -0
  106. package/dist/main/prepare-serve.d.ts +9 -0
  107. package/dist/main/prepare-serve.js +1 -0
  108. package/dist/main/prepare-static.d.ts +7 -0
  109. package/dist/main/prepare-static.js +1 -0
  110. package/dist/main/start-build.d.ts +13 -0
  111. package/dist/main/start-build.js +1 -0
  112. package/dist/main/start-serve.d.ts +11 -0
  113. package/dist/main/start-serve.js +1 -0
  114. package/dist/main/start-static.d.ts +10 -0
  115. package/dist/main/start-static.js +1 -0
  116. package/dist/minimizer/create-minimizers.d.ts +3 -0
  117. package/dist/minimizer/create-minimizers.js +1 -0
  118. package/dist/minimizer/default-options.d.ts +2 -0
  119. package/dist/minimizer/default-options.js +1 -0
  120. package/dist/minimizer/image-minimizer.d.ts +7 -0
  121. package/dist/minimizer/image-minimizer.js +1 -0
  122. package/dist/minimizer/index.d.ts +1 -0
  123. package/dist/minimizer/index.js +1 -0
  124. package/dist/minimizer/terser-minimizer.d.ts +6 -0
  125. package/dist/minimizer/terser-minimizer.js +3 -0
  126. package/dist/minimizer/types.d.ts +2 -0
  127. package/dist/minimizer/types.js +1 -0
  128. package/dist/plugins/clean-webpack/clean-webpack-plugin.d.ts +67 -0
  129. package/dist/plugins/clean-webpack/clean-webpack-plugin.js +1 -0
  130. package/dist/plugins/clean-webpack/index.d.ts +9 -0
  131. package/dist/plugins/clean-webpack/index.js +1 -0
  132. package/dist/plugins/html-inject-scripts/plugin-html-inject-script.d.ts +8 -0
  133. package/dist/plugins/html-inject-scripts/plugin-html-inject-script.js +1 -0
  134. package/dist/plugins/module-federation/external-template-remotes.d.ts +4 -0
  135. package/dist/plugins/module-federation/external-template-remotes.js +1 -0
  136. package/dist/plugins/module-federation/index.d.ts +1 -0
  137. package/dist/plugins/module-federation/index.js +1 -0
  138. package/dist/plugins/module-federation/module-federation.d.ts +4 -0
  139. package/dist/plugins/module-federation/module-federation.js +1 -0
  140. package/dist/plugins/multi-html/index.d.ts +4 -0
  141. package/dist/plugins/multi-html/index.js +1 -0
  142. package/dist/plugins/multi-html/multi-html-cdn-plugin.d.ts +17 -0
  143. package/dist/plugins/multi-html/multi-html-cdn-plugin.js +1 -0
  144. package/dist/plugins/multi-html/multi-html-plugin.d.ts +11 -0
  145. package/dist/plugins/multi-html/multi-html-plugin.js +1 -0
  146. package/dist/types/index.d.ts +8 -0
  147. package/dist/types/index.js +1 -0
  148. package/dist/types/types-dev-server.d.ts +51 -0
  149. package/dist/types/types-dev-server.js +1 -0
  150. package/dist/types/types-entry-map.d.ts +66 -0
  151. package/dist/types/types-entry-map.js +1 -0
  152. package/dist/types/types-federation.d.ts +120 -0
  153. package/dist/types/types-federation.js +1 -0
  154. package/dist/types/types-loader-options.d.ts +61 -0
  155. package/dist/types/types-loader-options.js +1 -0
  156. package/dist/types/types-modular-import.d.ts +38 -0
  157. package/dist/types/types-modular-import.js +1 -0
  158. package/dist/types/types-multi-html.d.ts +74 -0
  159. package/dist/types/types-multi-html.js +1 -0
  160. package/dist/types/types-options.d.ts +98 -0
  161. package/dist/types/types-options.js +1 -0
  162. package/dist/types/types-webpack.d.ts +70 -0
  163. package/dist/types/types-webpack.js +1 -0
  164. package/index.js +1 -4
  165. package/package.json +108 -60
  166. package/templates/html-plugin/index-dev.html +34 -50
  167. package/templates/html-plugin/index-inte.html +34 -50
  168. package/templates/html-plugin/index-inte2.html +34 -50
  169. package/templates/html-plugin/index-inte3.html +34 -50
  170. package/templates/html-plugin/index-inte4.html +34 -50
  171. package/templates/html-plugin/index-me.html +34 -50
  172. package/templates/html-plugin/index-prod.html +34 -50
  173. package/templates/html-plugin/index-rc.html +33 -50
  174. package/templates/html-plugin/index-uat.html +34 -50
  175. package/templates/main.html +2 -2
  176. package/templates/module-404.html +4 -2
  177. package/templates/module.html +51 -66
  178. package/cjs/index.js +0 -4
  179. package/cjs/loader-icon.js +0 -2
  180. package/index.d.ts +0 -713
@@ -16,65 +16,49 @@
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
17
  />
18
18
  <title><%= title %></title>
19
- <!-- / -->
20
- <% if (inlineScripts) { %>
21
- <!-- / -->
22
- <script>
23
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
24
- <%= inlineScripts[index]%>
25
- <% } %>
26
- </script>
27
- <!-- / -->
28
- <% } %>
29
- <!-- / -->
30
19
 
31
- <% if (viewport) { %>
32
- <!-- / -->
33
- <script>
34
- <%= viewport %>
35
- </script>
36
- <!-- / -->
37
- <% } %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
38
25
 
39
- <!-- / -->
26
+ <% if (inlineScripts) { %>
27
+ <script>
28
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
+ <%= inlineScripts[index] %>
30
+ <% } %>
31
+ </script>
32
+ <% } %>
33
+
34
+ <% if (viewport) { %>
35
+ <script><%= viewport %></script>
36
+ <% } %>
37
+
40
38
  <% if (favicon) { %>
41
- <!-- / -->
42
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
43
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
44
- <!-- / -->
39
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
41
+ <% } %>
42
+
43
+ <% if (headBeforeStyles) { %>
44
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
45
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
46
+ <% } %>
45
47
  <% } %>
46
-
47
- <!-- / -->
48
- <% if (headBeforeStyles) { %>
49
- <!-- / -->
50
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
51
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
52
- <% } %>
53
- <!-- / -->
54
- <% } %>
55
- <!-- / -->
56
-
57
- <!-- / -->
58
- <% if (headBeforeScripts) { %>
59
- <!-- / -->
60
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
61
- <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
62
- <% } %>
63
- <!-- / -->
48
+
49
+ <% if (headBeforeScripts) { %>
50
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
51
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
52
+ <% } %>
64
53
  <% } %>
65
- <!-- / -->
66
54
  </head>
67
55
 
68
56
  <body>
69
57
  <div id="app"></div>
70
- <!-- / -->
71
- <% if (bodyAfterScripts) { %>
72
- <!-- / -->
73
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
74
- <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
75
- <% } %>
76
- <!-- / -->
58
+ <% if (bodyAfterScripts) { %>
59
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
60
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
61
+ <% } %>
77
62
  <% } %>
78
- <!-- / -->
79
63
  </body>
80
64
  </html>
@@ -16,65 +16,49 @@
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
17
  />
18
18
  <title><%= title %></title>
19
- <!-- / -->
20
- <% if (inlineScripts) { %>
21
- <!-- / -->
22
- <script>
23
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
24
- <%= inlineScripts[index]%>
25
- <% } %>
26
- </script>
27
- <!-- / -->
28
- <% } %>
29
- <!-- / -->
30
19
 
31
- <% if (viewport) { %>
32
- <!-- / -->
33
- <script>
34
- <%= viewport %>
35
- </script>
36
- <!-- / -->
37
- <% } %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
38
25
 
39
- <!-- / -->
26
+ <% if (inlineScripts) { %>
27
+ <script>
28
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
+ <%= inlineScripts[index] %>
30
+ <% } %>
31
+ </script>
32
+ <% } %>
33
+
34
+ <% if (viewport) { %>
35
+ <script><%= viewport %></script>
36
+ <% } %>
37
+
40
38
  <% if (favicon) { %>
41
- <!-- / -->
42
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
43
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
44
- <!-- / -->
39
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
41
+ <% } %>
42
+
43
+ <% if (headBeforeStyles) { %>
44
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
45
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
46
+ <% } %>
45
47
  <% } %>
46
-
47
- <!-- / -->
48
- <% if (headBeforeStyles) { %>
49
- <!-- / -->
50
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
51
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
52
- <% } %>
53
- <!-- / -->
54
- <% } %>
55
- <!-- / -->
56
-
57
- <!-- / -->
58
- <% if (headBeforeScripts) { %>
59
- <!-- / -->
60
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
61
- <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
62
- <% } %>
63
- <!-- / -->
48
+
49
+ <% if (headBeforeScripts) { %>
50
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
51
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
52
+ <% } %>
64
53
  <% } %>
65
- <!-- / -->
66
54
  </head>
67
55
 
68
56
  <body>
69
57
  <div id="app"></div>
70
- <!-- / -->
71
- <% if (bodyAfterScripts) { %>
72
- <!-- / -->
73
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
74
- <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
75
- <% } %>
76
- <!-- / -->
58
+ <% if (bodyAfterScripts) { %>
59
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
60
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
61
+ <% } %>
77
62
  <% } %>
78
- <!-- / -->
79
63
  </body>
80
64
  </html>
@@ -16,65 +16,49 @@
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
17
  />
18
18
  <title><%= title %></title>
19
- <!-- / -->
20
- <% if (inlineScripts) { %>
21
- <!-- / -->
22
- <script>
23
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
24
- <%= inlineScripts[index]%>
25
- <% } %>
26
- </script>
27
- <!-- / -->
28
- <% } %>
29
- <!-- / -->
30
19
 
31
- <% if (viewport) { %>
32
- <!-- / -->
33
- <script>
34
- <%= viewport %>
35
- </script>
36
- <!-- / -->
37
- <% } %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
38
25
 
39
- <!-- / -->
26
+ <% if (inlineScripts) { %>
27
+ <script>
28
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
+ <%= inlineScripts[index] %>
30
+ <% } %>
31
+ </script>
32
+ <% } %>
33
+
34
+ <% if (viewport) { %>
35
+ <script><%= viewport %></script>
36
+ <% } %>
37
+
40
38
  <% if (favicon) { %>
41
- <!-- / -->
42
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
43
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
44
- <!-- / -->
39
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
41
+ <% } %>
42
+
43
+ <% if (headBeforeStyles) { %>
44
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
45
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
46
+ <% } %>
45
47
  <% } %>
46
-
47
- <!-- / -->
48
- <% if (headBeforeStyles) { %>
49
- <!-- / -->
50
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
51
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
52
- <% } %>
53
- <!-- / -->
54
- <% } %>
55
- <!-- / -->
56
-
57
- <!-- / -->
58
- <% if (headBeforeScripts) { %>
59
- <!-- / -->
60
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
61
- <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
62
- <% } %>
63
- <!-- / -->
48
+
49
+ <% if (headBeforeScripts) { %>
50
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
51
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
52
+ <% } %>
64
53
  <% } %>
65
- <!-- / -->
66
54
  </head>
67
55
 
68
56
  <body>
69
57
  <div id="app"></div>
70
- <!-- / -->
71
- <% if (bodyAfterScripts) { %>
72
- <!-- / -->
73
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
74
- <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
75
- <% } %>
76
- <!-- / -->
58
+ <% if (bodyAfterScripts) { %>
59
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
60
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
61
+ <% } %>
77
62
  <% } %>
78
- <!-- / -->
79
63
  </body>
80
64
  </html>
@@ -17,65 +17,48 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <!-- / -->
21
- <% if (inlineScripts) { %>
22
- <!-- / -->
23
- <script>
24
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
- <%= inlineScripts[index]%>
26
- <% } %>
27
- </script>
28
- <!-- / -->
29
- <% } %>
30
- <!-- / -->
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
31
25
 
26
+ <% if (inlineScripts) { %>
27
+ <script>
28
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
+ <%= inlineScripts[index] %>
30
+ <% } %>
31
+ </script>
32
+ <% } %>
33
+
32
34
  <% if (viewport) { %>
33
- <!-- / -->
34
- <script>
35
- <%= viewport %>
36
- </script>
37
- <!-- / -->
38
- <% } %>
39
-
40
- <!-- / -->
35
+ <script><%= viewport %></script>
36
+ <% } %>
37
+
41
38
  <% if (favicon) { %>
42
- <!-- / -->
43
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
44
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
45
- <!-- / -->
39
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
41
+ <% } %>
42
+
43
+ <% if (headBeforeStyles) { %>
44
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
45
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
46
+ <% } %>
46
47
  <% } %>
47
-
48
- <!-- / -->
49
- <% if (headBeforeStyles) { %>
50
- <!-- / -->
51
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
52
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
53
- <% } %>
54
- <!-- / -->
55
- <% } %>
56
- <!-- / -->
57
-
58
- <!-- / -->
59
- <% if (headBeforeScripts) { %>
60
- <!-- / -->
61
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
62
- <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
63
- <% } %>
64
- <!-- / -->
48
+
49
+ <% if (headBeforeScripts) { %>
50
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
51
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
52
+ <% } %>
65
53
  <% } %>
66
- <!-- / -->
67
54
  </head>
68
55
 
69
56
  <body>
70
57
  <div id="app"></div>
71
- <!-- / -->
72
- <% if (bodyAfterScripts) { %>
73
- <!-- / -->
74
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
75
- <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
76
- <% } %>
77
- <!-- / -->
58
+ <% if (bodyAfterScripts) { %>
59
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
60
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
61
+ <% } %>
78
62
  <% } %>
79
- <!-- / -->
80
63
  </body>
81
64
  </html>
@@ -16,65 +16,49 @@
16
16
  content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover"
17
17
  />
18
18
  <title><%= title %></title>
19
- <!-- / -->
20
- <% if (inlineScripts) { %>
21
- <!-- / -->
22
- <script>
23
- <% for (let index = 0; index < inlineScripts.length; index++) { %>
24
- <%= inlineScripts[index]%>
25
- <% } %>
26
- </script>
27
- <!-- / -->
28
- <% } %>
29
- <!-- / -->
30
19
 
31
- <% if (viewport) { %>
32
- <!-- / -->
33
- <script>
34
- <%= viewport %>
35
- </script>
36
- <!-- / -->
37
- <% } %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
38
25
 
39
- <!-- / -->
26
+ <% if (inlineScripts) { %>
27
+ <script>
28
+ <% for (let index = 0; index < inlineScripts.length; index++) { %>
29
+ <%= inlineScripts[index] %>
30
+ <% } %>
31
+ </script>
32
+ <% } %>
33
+
34
+ <% if (viewport) { %>
35
+ <script><%= viewport %></script>
36
+ <% } %>
37
+
40
38
  <% if (favicon) { %>
41
- <!-- / -->
42
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
43
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
44
- <!-- / -->
39
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
41
+ <% } %>
42
+
43
+ <% if (headBeforeStyles) { %>
44
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
45
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
46
+ <% } %>
45
47
  <% } %>
46
-
47
- <!-- / -->
48
- <% if (headBeforeStyles) { %>
49
- <!-- / -->
50
- <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
51
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
52
- <% } %>
53
- <!-- / -->
54
- <% } %>
55
- <!-- / -->
56
-
57
- <!-- / -->
58
- <% if (headBeforeScripts) { %>
59
- <!-- / -->
60
- <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
61
- <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
62
- <% } %>
63
- <!-- / -->
48
+
49
+ <% if (headBeforeScripts) { %>
50
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
51
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
52
+ <% } %>
64
53
  <% } %>
65
- <!-- / -->
66
54
  </head>
67
55
 
68
56
  <body>
69
57
  <div id="app"></div>
70
- <!-- / -->
71
- <% if (bodyAfterScripts) { %>
72
- <!-- / -->
73
- <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
74
- <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
75
- <% } %>
76
- <!-- / -->
58
+ <% if (bodyAfterScripts) { %>
59
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
60
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
61
+ <% } %>
77
62
  <% } %>
78
- <!-- / -->
79
63
  </body>
80
64
  </html>
@@ -101,8 +101,8 @@
101
101
  <ul>
102
102
  <% _.forEach(modules, function (module, index) { %>
103
103
  <li>
104
- <a href="<%= module.link %>"><%= index+1%>. <%= module.name %></a>
105
- <span class="<%= module.flagText %>"><%= module.flagText %></span>
104
+ <a href="<%= module.link %>"> <%= index+1%>. <%= module.name %> </a>
105
+ <span class="<%= module.flagText %>"> <%= module.flagText %> </span>
106
106
  </li>
107
107
  <% }) %>
108
108
  </ul>
@@ -21,18 +21,20 @@
21
21
  padding: 0;
22
22
  margin: 0;
23
23
  }
24
+
24
25
  .name {
25
26
  font-weight: bold;
26
27
  }
27
28
  </style>
28
29
  </head>
30
+
29
31
  <body>
30
32
  <div class="container">
31
33
  <ul>
32
34
  <% _.forEach(errorMeta, function (error) { %>
33
35
  <li>
34
- <span class="name"><%= error.name %>:</span>
35
- <span class="value"><%= error.value %></span>
36
+ <span class="name"> <%= error.name %>: </span>
37
+ <span class="value"> <%= error.value %> </span>
36
38
  </li>
37
39
  <% }) %>
38
40
  </ul>