@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.
- package/CHANGELOG.md +160 -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/create-plugins.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/should-enable-react-fast-refresh.js +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
@@ -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>
|
package/templates/module.html
CHANGED
@@ -17,39 +17,47 @@
|
|
17
17
|
/>
|
18
18
|
<title><%= title %></title>
|
19
19
|
|
20
|
-
<% if (headBeforeHtmlTags) { %>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
<%
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<% }
|
20
|
+
<% if (headBeforeHtmlTags) { %>
|
21
|
+
<% for (let index = 0; index < headBeforeHtmlTags.length; index++) { %>
|
22
|
+
<%= headBeforeHtmlTags[index] %> <%
|
23
|
+
} %>
|
24
|
+
<% } %>
|
25
|
+
<% if (inlineScripts) { %>
|
26
|
+
<script>
|
27
|
+
<% for (let index = 0; index < inlineScripts.length; index++) { %>
|
28
|
+
<%= inlineScripts[index] %>
|
29
|
+
<% } %>
|
30
|
+
</script>
|
31
|
+
<% } %>
|
32
|
+
<% if (viewport) { %>
|
33
|
+
<script>
|
34
|
+
<%= viewport %>
|
35
|
+
</script>
|
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 (styles.length) { %>
|
47
|
+
<% _.forEach(styles, (css)=> { %>
|
48
|
+
<link href="<%= css %>" rel="stylesheet" />
|
49
|
+
<% }) %>
|
50
|
+
<% } %>
|
41
51
|
|
42
52
|
<script>
|
43
53
|
window.GLOBAL = <%= JSON.stringify(Object.assign(global, {})) %>;
|
44
54
|
</script>
|
45
55
|
|
46
|
-
<% if (headBeforeScripts) { %>
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
></script>
|
52
|
-
<% } %> <% } %>
|
56
|
+
<% if (headBeforeScripts) { %>
|
57
|
+
<% for (let index = 0; index < headBeforeScripts.length; index++) { %>
|
58
|
+
<script crossorigin="anonymous" src="<%= headBeforeScripts[index]%>"></script>
|
59
|
+
<% } %>
|
60
|
+
<% } %>
|
53
61
|
</head>
|
54
62
|
|
55
63
|
<body>
|
@@ -58,14 +66,16 @@
|
|
58
66
|
<script>
|
59
67
|
<%= moduleFederationScripts %>
|
60
68
|
</script>
|
61
|
-
<% } %>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
69
|
+
<% } %>
|
70
|
+
<% if (scripts.length) { %>
|
71
|
+
<% _.forEach(scripts, (js)=> { %>
|
72
|
+
<script src="<%= js %>"></script>
|
73
|
+
<% }) %>
|
74
|
+
<% } %>
|
75
|
+
<% if (bodyAfterScripts) { %>
|
76
|
+
<% for (let index = 0; index < bodyAfterScripts.length; index++) { %>
|
77
|
+
<script crossorigin="anonymous" src="<%= bodyAfterScripts[index]%>"></script>
|
78
|
+
<% } %>
|
79
|
+
<% } %>
|
70
80
|
</body>
|
71
81
|
</html>
|