@flatjs/evolve 1.8.1-next.97 → 2.0.0-next.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/dist/constants.d.ts +9 -0
  3. package/dist/constants.js +1 -1
  4. package/dist/create-webpack/create-optimization.d.ts +2 -1
  5. package/dist/create-webpack/create-optimization.js +1 -1
  6. package/dist/create-webpack/create-plugins.js +1 -1
  7. package/dist/create-webpack/load-webpack-config.js +1 -1
  8. package/dist/define-config/define-config.d.ts +3 -1
  9. package/dist/dev-server/add-compiler-to-dev-server.d.ts +2 -1
  10. package/dist/dev-server/add-compiler-to-dev-server.js +1 -1
  11. package/dist/dev-server/create-dev-server-compiler-tasks.d.ts +1 -1
  12. package/dist/dev-server/create-dev-server-compiler-tasks.js +1 -1
  13. package/dist/dev-server/create-dev-server.d.ts +1 -0
  14. package/dist/dev-server/create-dev-server.js +1 -1
  15. package/dist/dev-server/middlewares/create-page-middleware.js +1 -1
  16. package/dist/helpers/get-bundle-file-name.js +1 -1
  17. package/dist/helpers/json-serializer.js +1 -1
  18. package/dist/helpers/refresh-evolve-mock-options.d.ts +1 -1
  19. package/dist/helpers/should-enable-react-fast-refresh.js +1 -1
  20. package/dist/helpers/split-to-multi-compiler.d.ts +1 -1
  21. package/dist/helpers/split-to-multi-compiler.js +1 -1
  22. package/dist/load-config/load-evolve-config.d.ts +1 -7
  23. package/dist/load-config/load-evolve-config.js +1 -1
  24. package/dist/load-config/types.d.ts +7 -0
  25. package/dist/load-config/types.js +1 -0
  26. package/dist/main/create-thread-worker.d.ts +16 -0
  27. package/dist/main/create-thread-worker.js +1 -0
  28. package/dist/main/prepare-serve.js +1 -1
  29. package/dist/main/start-build-dynamic.d.ts +2 -2
  30. package/dist/main/start-build-dynamic.js +1 -1
  31. package/dist/main/start-build-worker.d.ts +1 -1
  32. package/dist/main/start-build.d.ts +1 -1
  33. package/dist/main/start-build.js +1 -1
  34. package/dist/main/start-one-entry-build.js +1 -1
  35. package/dist/main/start-serve.d.ts +1 -1
  36. package/dist/main/start-static.d.ts +1 -1
  37. package/dist/plugins/circular-dependency/circular-dependency-plugin.d.ts +1 -1
  38. package/dist/plugins/circular-dependency/circular-dependency-plugin.js +1 -1
  39. package/dist/types/types-ci.d.ts +7 -0
  40. package/dist/types/types-multi-html.d.ts +2 -0
  41. package/package.json +38 -36
  42. package/templates/html-plugin/index-dev.html +28 -24
  43. package/templates/html-plugin/index-inte.html +28 -24
  44. package/templates/html-plugin/index-inte2.html +28 -24
  45. package/templates/html-plugin/index-inte3.html +28 -24
  46. package/templates/html-plugin/index-inte4.html +28 -24
  47. package/templates/html-plugin/index-me.html +28 -24
  48. package/templates/html-plugin/index-prod.html +28 -24
  49. package/templates/html-plugin/index-rc.html +28 -24
  50. package/templates/html-plugin/index-uat.html +28 -24
  51. package/templates/module.html +47 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.97",
3
+ "version": "2.0.0-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,19 +37,19 @@
37
37
  "typecheck": "tsc --project ./tsconfig.json --noEmit"
38
38
  },
39
39
  "dependencies": {
40
- "@armit/config-loader": "^0.0.51",
41
- "@armit/file-utility": "^0.0.28",
42
- "@armit/git": "^0.0.36",
43
- "@armit/package": "^0.0.45",
44
- "@armit/worker-threads": "^0.0.5",
45
- "@babel/core": "7.22.9",
46
- "@flatjs/common": "1.8.1-next.35",
47
- "@flatjs/evolve-preset-babel": "1.8.1-next.17",
48
- "@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.35",
49
- "@flatjs/graph": "1.8.1-next.50",
50
- "@flatjs/mock": "1.8.1-next.74",
51
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
52
- "@types/babel__core": "7.20.1",
40
+ "@armit/config-loader": "^0.0.56",
41
+ "@armit/file-utility": "^0.0.33",
42
+ "@armit/git": "^0.0.41",
43
+ "@armit/package": "^0.0.50",
44
+ "@armit/worker-threads": "^0.0.10",
45
+ "@babel/core": "7.23.2",
46
+ "@flatjs/common": "2.0.0-next.1",
47
+ "@flatjs/evolve-preset-babel": "2.0.0-next.1",
48
+ "@flatjs/forge-postcss-plugin-pixel": "2.0.0-next.1",
49
+ "@flatjs/graph": "2.0.0-next.1",
50
+ "@flatjs/mock": "2.0.0-next.1",
51
+ "@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
52
+ "@types/babel__core": "7.20.3",
53
53
  "babel-loader": "9.1.3",
54
54
  "babel-merge": "3.0.0",
55
55
  "babel-plugin-import": "1.13.8",
@@ -58,51 +58,52 @@
58
58
  "css-loader": "6.8.1",
59
59
  "cssnano": "6.0.1",
60
60
  "express": "4.18.2",
61
- "fork-ts-checker-webpack-plugin": "8.0.0",
62
- "happy-dom": "10.6.3",
61
+ "fork-ts-checker-webpack-plugin": "9.0.0",
62
+ "happy-dom": "12.9.1",
63
63
  "html-webpack-plugin": "5.5.3",
64
64
  "image-minimizer-webpack-plugin": "3.8.3",
65
- "less": "4.1.3",
65
+ "less": "4.2.0",
66
66
  "less-loader": "11.1.3",
67
67
  "listr": "0.14.3",
68
68
  "lodash": "4.17.21",
69
69
  "mini-css-extract-plugin": "2.7.6",
70
- "postcss": "8.4.27",
70
+ "postcss": "8.4.31",
71
71
  "postcss-loader": "7.3.3",
72
72
  "react-refresh": "0.14.0",
73
73
  "svgo": "3.0.2",
74
74
  "tarjan-graph": "3.0.0",
75
75
  "terser-webpack-plugin": "5.3.9",
76
76
  "tsconfig-paths-webpack-plugin": "4.1.0",
77
- "type-fest": "^4.1.0",
78
- "webpack": "5.88.2",
79
- "webpack-bundle-analyzer": "4.9.0",
77
+ "type-fest": "^4.5.0",
78
+ "typescript": "5.2.2",
79
+ "webpack": "5.89.0",
80
+ "webpack-bundle-analyzer": "4.9.1",
80
81
  "webpack-dev-server": "4.15.1",
81
82
  "webpack-sources": "3.2.3"
82
83
  },
83
84
  "devDependencies": {
84
- "@armit/eslint-config-bases": "^0.0.23",
85
- "@flatjs/testing": "1.8.1-next.37",
86
- "@swc/core": "1.3.74",
87
- "@types/express": "4.17.17",
88
- "@types/listr": "0.14.4",
89
- "@types/node": "20.4.6",
90
- "@vitest/coverage-istanbul": "0.34.1",
91
- "@vitest/ui": "0.34.1",
92
- "eslint": "8.46.0",
85
+ "@armit/eslint-config-bases": "^0.0.28",
86
+ "@flatjs/testing": "2.0.0-next.1",
87
+ "@swc/core": "1.3.93",
88
+ "@types/express": "4.17.20",
89
+ "@types/listr": "0.14.7",
90
+ "@types/node": "20.8.7",
91
+ "@vitest/coverage-istanbul": "0.34.6",
92
+ "@vitest/ui": "0.34.6",
93
+ "eslint": "8.51.0",
93
94
  "imagemin-gifsicle": "7.0.0",
94
95
  "imagemin-jpegtran": "7.0.0",
95
96
  "imagemin-pngquant": "9.0.2",
96
97
  "imagemin-svgo": "10.0.1",
97
98
  "npm-run-all": "4.1.5",
98
- "prettier": "3.0.0",
99
+ "prettier": "3.0.3",
99
100
  "react": "18.2.0",
100
- "rimraf": "5.0.1",
101
+ "rimraf": "5.0.5",
101
102
  "swc-unplugin-ts": "1.0.2",
102
103
  "ts-node": "10.9.1",
103
- "vite-tsconfig-paths": "4.2.0",
104
- "vitest": "0.34.1",
105
- "vue-loader": "17.2.2"
104
+ "vite-tsconfig-paths": "4.2.1",
105
+ "vitest": "0.34.6",
106
+ "vue-loader": "17.3.0"
106
107
  },
107
108
  "peerDependencies": {
108
109
  "imagemin-gifsicle": ">=7.0.0",
@@ -125,7 +126,8 @@
125
126
  }
126
127
  },
127
128
  "engines": {
128
- "node": ">=18.0.0"
129
+ "node": ">=18.0.0",
130
+ "npm": ">=8.0.0"
129
131
  },
130
132
  "publishConfig": {
131
133
  "access": "public",
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>
@@ -17,41 +17,45 @@
17
17
  />
18
18
  <title><%= title %></title>
19
19
 
20
- <% if (headBeforeHtmlTags) { %> <% for (let index = 0; index <
21
- headBeforeHtmlTags.length; index++) { %> <%= headBeforeHtmlTags[index] %> <%
22
- } %> <% } %> <% if (inlineScripts) { %>
20
+ <% if (headBeforeHtmlTags) { %>
21
+ <% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
22
+ <%= headBeforeHtmlTags[index] %>
23
+ <% } %>
24
+ <% } %>
25
+ <% if (inlineScripts) { %>
23
26
  <script>
24
27
  <% for (let index = 0; index < inlineScripts.length; index++) { %>
25
28
  <%= inlineScripts[index] %>
26
29
  <% } %>
27
30
  </script>
28
- <% } %> <% if (viewport) { %>
31
+ <% } %>
32
+ <% if (viewport) { %>
29
33
  <script>
30
34
  <%= viewport %>
31
35
  </script>
32
- <% } %> <% if (favicon) { %>
33
- <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
34
- <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
35
- <% } %> <% if (headBeforeStyles) { %> <% for (let index = 0; index <
36
- headBeforeStyles.length; index++) { %>
37
- <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
38
- <% } %> <% } %> <% if (headBeforeScripts) { %> <% for (let index = 0; index
39
- < headBeforeScripts.length; index++) { %>
40
- <script
41
- crossorigin="anonymous"
42
- src="<%= headBeforeScripts[index]%>"
43
- ></script>
44
- <% } %> <% } %>
36
+ <% } %>
37
+ <% if (favicon) { %>
38
+ <link rel="shortcut icon" href="<%= favicon %>" type="image/x-icon" />
39
+ <link rel="icon" href="<%= favicon %>" type="image/x-icon" />
40
+ <% } %>
41
+ <% if (headBeforeStyles) { %>
42
+ <% for (let index = 0; index < headBeforeStyles.length; index++) { %>
43
+ <link href="<%= headBeforeStyles[index] %>" rel="stylesheet" />
44
+ <% } %>
45
+ <% } %>
46
+ <% if (headBeforeScripts) { %>
47
+ <% for (let index = 0; index < headBeforeScripts.length; index++) { %>
48
+ <script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
49
+ <% } %>
50
+ <% } %>
45
51
  </head>
46
52
 
47
53
  <body>
48
54
  <div id="app"></div>
49
- <% if (bodyAfterScripts) { %> <% for (let index = 0; index <
50
- bodyAfterScripts.length; index++) { %>
51
- <script
52
- crossorigin="anonymous"
53
- src="<%= bodyAfterScripts[index]%>"
54
- ></script>
55
- <% } %> <% } %>
55
+ <% if (bodyAfterScripts) { %>
56
+ <% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
57
+ <script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
58
+ <% } %>
59
+ <% } %>
56
60
  </body>
57
61
  </html>