@flatjs/evolve 1.8.1-next.99 → 2.0.0-next.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +148 -0
- package/dist/constants.d.ts +9 -0
- package/dist/constants.js +1 -1
- package/dist/create-webpack/create-optimization.d.ts +2 -1
- package/dist/create-webpack/create-optimization.js +1 -1
- package/dist/create-webpack/load-webpack-config.js +1 -1
- package/dist/define-config/define-config.d.ts +3 -1
- package/dist/dev-server/add-compiler-to-dev-server.d.ts +2 -1
- package/dist/dev-server/add-compiler-to-dev-server.js +1 -1
- package/dist/dev-server/create-dev-server-compiler-tasks.d.ts +1 -1
- package/dist/dev-server/create-dev-server-compiler-tasks.js +1 -1
- package/dist/dev-server/create-dev-server.d.ts +1 -0
- package/dist/dev-server/create-dev-server.js +1 -1
- package/dist/dev-server/middlewares/create-page-middleware.js +1 -1
- package/dist/helpers/get-bundle-file-name.js +1 -1
- package/dist/helpers/json-serializer.js +1 -1
- package/dist/helpers/refresh-evolve-mock-options.d.ts +1 -1
- package/dist/helpers/split-to-multi-compiler.d.ts +1 -1
- package/dist/helpers/split-to-multi-compiler.js +1 -1
- package/dist/load-config/load-evolve-config.d.ts +1 -7
- package/dist/load-config/load-evolve-config.js +1 -1
- package/dist/load-config/types.d.ts +7 -0
- package/dist/load-config/types.js +1 -0
- package/dist/main/create-thread-worker.d.ts +16 -0
- package/dist/main/create-thread-worker.js +1 -0
- package/dist/main/prepare-serve.js +1 -1
- package/dist/main/start-build-dynamic.d.ts +2 -2
- package/dist/main/start-build-dynamic.js +1 -1
- package/dist/main/start-build-worker.d.ts +1 -1
- package/dist/main/start-build.d.ts +1 -1
- package/dist/main/start-build.js +1 -1
- package/dist/main/start-one-entry-build.js +1 -1
- package/dist/main/start-serve.d.ts +1 -1
- package/dist/main/start-static.d.ts +1 -1
- package/dist/plugins/circular-dependency/circular-dependency-plugin.d.ts +1 -1
- package/dist/plugins/circular-dependency/circular-dependency-plugin.js +1 -1
- package/dist/types/types-ci.d.ts +7 -0
- package/dist/types/types-multi-html.d.ts +2 -0
- package/package.json +38 -36
- package/templates/html-plugin/index-dev.html +28 -24
- package/templates/html-plugin/index-inte.html +28 -24
- package/templates/html-plugin/index-inte2.html +28 -24
- package/templates/html-plugin/index-inte3.html +28 -24
- package/templates/html-plugin/index-inte4.html +28 -24
- package/templates/html-plugin/index-me.html +28 -24
- package/templates/html-plugin/index-prod.html +28 -24
- package/templates/html-plugin/index-rc.html +28 -24
- package/templates/html-plugin/index-uat.html +28 -24
- package/templates/module.html +47 -37
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "
|
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.
|
41
|
-
"@armit/file-utility": "^0.0.
|
42
|
-
"@armit/git": "^0.0.
|
43
|
-
"@armit/package": "^0.0.
|
44
|
-
"@armit/worker-threads": "^0.0.
|
45
|
-
"@babel/core": "7.
|
46
|
-
"@flatjs/common": "
|
47
|
-
"@flatjs/evolve-preset-babel": "
|
48
|
-
"@flatjs/forge-postcss-plugin-pixel": "
|
49
|
-
"@flatjs/graph": "
|
50
|
-
"@flatjs/mock": "
|
51
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.
|
52
|
-
"@types/babel__core": "7.20.
|
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": "
|
62
|
-
"happy-dom": "
|
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.
|
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.
|
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.
|
78
|
-
"
|
79
|
-
"webpack
|
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.
|
85
|
-
"@flatjs/testing": "
|
86
|
-
"@swc/core": "1.3.
|
87
|
-
"@types/express": "4.17.
|
88
|
-
"@types/listr": "0.14.
|
89
|
-
"@types/node": "20.
|
90
|
-
"@vitest/coverage-istanbul": "0.34.
|
91
|
-
"@vitest/ui": "0.34.
|
92
|
-
"eslint": "8.
|
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.
|
99
|
+
"prettier": "3.0.3",
|
99
100
|
"react": "18.2.0",
|
100
|
-
"rimraf": "5.0.
|
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.
|
104
|
-
"vitest": "0.34.
|
105
|
-
"vue-loader": "17.
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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) { %>
|
21
|
-
|
22
|
-
|
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
|
-
<% } %>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
29
33
|
<script>
|
30
34
|
<%= viewport %>
|
31
35
|
</script>
|
32
|
-
<% } %>
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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) { %>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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>
|