@flatjs/evolve 1.7.2 → 1.8.1-next.18
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +28 -0
- package/LICENSE +21 -0
- package/README.md +10 -46
- package/dist/constants.d.ts +15 -0
- package/dist/constants.js +1 -0
- package/dist/create-webpack/create-externals.d.ts +4 -0
- package/dist/create-webpack/create-externals.js +1 -0
- package/dist/create-webpack/create-optimization.d.ts +3 -0
- package/dist/create-webpack/create-optimization.js +1 -0
- package/dist/create-webpack/create-output.d.ts +3 -0
- package/dist/create-webpack/create-output.js +1 -0
- package/dist/create-webpack/create-performance.d.ts +2 -0
- package/dist/create-webpack/create-performance.js +1 -0
- package/dist/create-webpack/create-plugins.d.ts +4 -0
- package/dist/create-webpack/create-plugins.js +1 -0
- package/dist/create-webpack/create-resolve.d.ts +2 -0
- package/dist/create-webpack/create-resolve.js +1 -0
- package/dist/create-webpack/create-rule-sets.d.ts +4 -0
- package/dist/create-webpack/create-rule-sets.js +1 -0
- package/dist/create-webpack/load-webpack-config.d.ts +10 -0
- package/dist/create-webpack/load-webpack-config.js +1 -0
- package/dist/create-webpack/rule-sets/constants.d.ts +3 -0
- package/dist/create-webpack/rule-sets/constants.js +1 -0
- package/dist/create-webpack/rule-sets/rule-assets.d.ts +10 -0
- package/dist/create-webpack/rule-sets/rule-assets.js +1 -0
- package/dist/create-webpack/rule-sets/rule-css.d.ts +11 -0
- package/dist/create-webpack/rule-sets/rule-css.js +1 -0
- package/dist/create-webpack/rule-sets/rule-less.d.ts +9 -0
- package/dist/create-webpack/rule-sets/rule-less.js +1 -0
- package/dist/create-webpack/rule-sets/rule-scripts.d.ts +3 -0
- package/dist/create-webpack/rule-sets/rule-scripts.js +1 -0
- package/dist/create-webpack/rule-sets/rule-svg-icon.d.ts +6 -0
- package/dist/create-webpack/rule-sets/rule-svg-icon.js +1 -0
- package/dist/create-webpack/rule-sets/rule-utils.d.ts +7 -0
- package/dist/create-webpack/rule-sets/rule-utils.js +1 -0
- package/dist/create-webpack/types.d.ts +2 -0
- package/dist/create-webpack/types.js +1 -0
- package/dist/default-options.d.ts +2 -0
- package/dist/default-options.js +1 -0
- package/dist/define-config/define-config.d.ts +6 -0
- package/dist/define-config/define-config.js +1 -0
- package/dist/define-config/index.d.ts +1 -0
- package/dist/define-config/index.js +1 -0
- package/dist/dev-server/add-compiler-to-dev-server.d.ts +10 -0
- package/dist/dev-server/add-compiler-to-dev-server.js +1 -0
- package/dist/dev-server/create-app-page-route.d.ts +7 -0
- package/dist/dev-server/create-app-page-route.js +1 -0
- package/dist/dev-server/create-dev-server-compiler-tasks.d.ts +3 -0
- package/dist/dev-server/create-dev-server-compiler-tasks.js +1 -0
- package/dist/dev-server/create-dev-server-entries.d.ts +4 -0
- package/dist/dev-server/create-dev-server-entries.js +1 -0
- package/dist/dev-server/create-dev-server.d.ts +6 -0
- package/dist/dev-server/create-dev-server.js +1 -0
- package/dist/dev-server/index.d.ts +6 -0
- package/dist/dev-server/index.js +1 -0
- package/dist/dev-server/middlewares/create-page-middleware.d.ts +37 -0
- package/dist/dev-server/middlewares/create-page-middleware.js +1 -0
- package/dist/dev-server/middlewares/create-public-assets-middleware.d.ts +2 -0
- package/dist/dev-server/middlewares/create-public-assets-middleware.js +1 -0
- package/dist/dev-server/middlewares/index.d.ts +2 -0
- package/dist/dev-server/middlewares/index.js +1 -0
- package/dist/helpers/allow-px2rem-for-module.d.ts +3 -0
- package/dist/helpers/allow-px2rem-for-module.js +1 -0
- package/dist/helpers/assert-only-single-entry-item.d.ts +7 -0
- package/dist/helpers/assert-only-single-entry-item.js +1 -0
- package/dist/helpers/enable-bundle-hashname-for-module.d.ts +3 -0
- package/dist/helpers/enable-bundle-hashname-for-module.js +1 -0
- package/dist/helpers/get-bundle-file-name.d.ts +14 -0
- package/dist/helpers/get-bundle-file-name.js +1 -0
- package/dist/helpers/get-html-plugin-config.d.ts +12 -0
- package/dist/helpers/get-html-plugin-config.js +1 -0
- package/dist/helpers/get-pacakge-dir.d.ts +1 -0
- package/dist/helpers/get-pacakge-dir.js +1 -0
- package/dist/helpers/index.d.ts +14 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/merge-babel-options.d.ts +4 -0
- package/dist/helpers/merge-babel-options.js +1 -0
- package/dist/helpers/normalize-entry-map.d.ts +15 -0
- package/dist/helpers/normalize-entry-map.js +1 -0
- package/dist/helpers/open-page.d.ts +7 -0
- package/dist/helpers/open-page.js +1 -0
- package/dist/helpers/print-log.d.ts +2 -0
- package/dist/helpers/print-log.js +1 -0
- package/dist/helpers/refresh-evolve-mock-options.d.ts +3 -0
- package/dist/helpers/refresh-evolve-mock-options.js +1 -0
- package/dist/helpers/script-injects.d.ts +11 -0
- package/dist/helpers/script-injects.js +1 -0
- package/dist/helpers/should-enable-react-fast-refresh.d.ts +3 -0
- package/dist/helpers/should-enable-react-fast-refresh.js +1 -0
- package/dist/helpers/split-to-multi-compiler.d.ts +8 -0
- package/dist/helpers/split-to-multi-compiler.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/load-config/index.d.ts +1 -0
- package/dist/load-config/index.js +1 -0
- package/dist/load-config/load-evolve-config.d.ts +10 -0
- package/dist/load-config/load-evolve-config.js +1 -0
- package/dist/loaders/loader-icon.cjs +33 -0
- package/dist/loaders/loader-icon.d.cts +1 -0
- package/dist/main/env-verify.d.ts +2 -0
- package/dist/main/env-verify.js +1 -0
- package/dist/main/index.d.ts +3 -0
- package/dist/main/index.js +1 -0
- package/dist/main/prepare-build.d.ts +13 -0
- package/dist/main/prepare-build.js +1 -0
- package/dist/main/prepare-serve.d.ts +9 -0
- package/dist/main/prepare-serve.js +1 -0
- package/dist/main/prepare-static.d.ts +7 -0
- package/dist/main/prepare-static.js +1 -0
- package/dist/main/start-build.d.ts +13 -0
- package/dist/main/start-build.js +1 -0
- package/dist/main/start-serve.d.ts +11 -0
- package/dist/main/start-serve.js +1 -0
- package/dist/main/start-static.d.ts +10 -0
- package/dist/main/start-static.js +1 -0
- package/dist/minimizer/create-minimizers.d.ts +3 -0
- package/dist/minimizer/create-minimizers.js +1 -0
- package/dist/minimizer/default-options.d.ts +2 -0
- package/dist/minimizer/default-options.js +1 -0
- package/dist/minimizer/image-minimizer.d.ts +7 -0
- package/dist/minimizer/image-minimizer.js +1 -0
- package/dist/minimizer/index.d.ts +1 -0
- package/dist/minimizer/index.js +1 -0
- package/dist/minimizer/terser-minimizer.d.ts +6 -0
- package/dist/minimizer/terser-minimizer.js +3 -0
- package/dist/minimizer/types.d.ts +2 -0
- package/dist/minimizer/types.js +1 -0
- package/dist/plugins/clean-webpack/clean-webpack-plugin.d.ts +67 -0
- package/dist/plugins/clean-webpack/clean-webpack-plugin.js +1 -0
- package/dist/plugins/clean-webpack/index.d.ts +9 -0
- package/dist/plugins/clean-webpack/index.js +1 -0
- package/dist/plugins/html-inject-scripts/plugin-html-inject-script.d.ts +8 -0
- package/dist/plugins/html-inject-scripts/plugin-html-inject-script.js +1 -0
- package/dist/plugins/module-federation/external-template-remotes.d.ts +4 -0
- package/dist/plugins/module-federation/external-template-remotes.js +1 -0
- package/dist/plugins/module-federation/index.d.ts +1 -0
- package/dist/plugins/module-federation/index.js +1 -0
- package/dist/plugins/module-federation/module-federation.d.ts +4 -0
- package/dist/plugins/module-federation/module-federation.js +1 -0
- package/dist/plugins/multi-html/index.d.ts +4 -0
- package/dist/plugins/multi-html/index.js +1 -0
- package/dist/plugins/multi-html/multi-html-cdn-plugin.d.ts +17 -0
- package/dist/plugins/multi-html/multi-html-cdn-plugin.js +1 -0
- package/dist/plugins/multi-html/multi-html-plugin.d.ts +11 -0
- package/dist/plugins/multi-html/multi-html-plugin.js +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +1 -0
- package/dist/types/types-dev-server.d.ts +51 -0
- package/dist/types/types-dev-server.js +1 -0
- package/dist/types/types-entry-map.d.ts +66 -0
- package/dist/types/types-entry-map.js +1 -0
- package/dist/types/types-federation.d.ts +120 -0
- package/dist/types/types-federation.js +1 -0
- package/dist/types/types-loader-options.d.ts +61 -0
- package/dist/types/types-loader-options.js +1 -0
- package/dist/types/types-modular-import.d.ts +38 -0
- package/dist/types/types-modular-import.js +1 -0
- package/dist/types/types-multi-html.d.ts +74 -0
- package/dist/types/types-multi-html.js +1 -0
- package/dist/types/types-options.d.ts +98 -0
- package/dist/types/types-options.js +1 -0
- package/dist/types/types-webpack.d.ts +70 -0
- package/dist/types/types-webpack.js +1 -0
- package/index.js +1 -4
- package/package.json +107 -59
- package/templates/html-plugin/index-dev.html +34 -50
- package/templates/html-plugin/index-inte.html +34 -50
- package/templates/html-plugin/index-inte2.html +34 -50
- package/templates/html-plugin/index-inte3.html +34 -50
- package/templates/html-plugin/index-inte4.html +34 -50
- package/templates/html-plugin/index-me.html +34 -50
- package/templates/html-plugin/index-prod.html +34 -50
- package/templates/html-plugin/index-rc.html +33 -50
- package/templates/html-plugin/index-uat.html +34 -50
- package/templates/main.html +2 -2
- package/templates/module-404.html +4 -2
- package/templates/module.html +51 -66
- package/cjs/index.js +0 -4
- package/cjs/loader-icon.js +0 -2
- package/index.d.ts +0 -713
package/package.json
CHANGED
@@ -1,77 +1,125 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "1.
|
4
|
-
"description": "the webpack based tools `evolve` of @flatjs",
|
5
|
-
"keywords": [
|
6
|
-
"shared",
|
7
|
-
"flatjs",
|
8
|
-
"common",
|
9
|
-
"utils"
|
10
|
-
],
|
3
|
+
"version": "1.8.1-next.18",
|
11
4
|
"license": "MIT",
|
12
|
-
"
|
13
|
-
"
|
14
|
-
|
15
|
-
|
5
|
+
"type": "module",
|
6
|
+
"exports": {
|
7
|
+
".": {
|
8
|
+
"import": "./index.js",
|
9
|
+
"types": "./dist/index.d.ts"
|
10
|
+
},
|
11
|
+
"./package.json": "./package.json"
|
12
|
+
},
|
13
|
+
"types": "./dist/index.d.ts",
|
16
14
|
"files": [
|
17
|
-
"
|
15
|
+
"bin/",
|
16
|
+
"dist/",
|
18
17
|
"templates/",
|
19
18
|
"index.js",
|
20
|
-
"index.d.ts",
|
21
19
|
"README.md",
|
20
|
+
"CHANGELOG.md",
|
22
21
|
"package.json"
|
23
22
|
],
|
23
|
+
"scripts": {
|
24
|
+
"serve": "yarn ts-node-esm ./tests/dev-server/dev-server.ts",
|
25
|
+
"build": "rimraf dist && tsc -p ./tsconfig.build.json && npm run minify",
|
26
|
+
"?build-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick",
|
27
|
+
"build-release": "yarn build && rimraf ./_release && yarn pack && mkdir ./_release && tar zxvf ./package.tgz --directory ./_release && rm ./package.tgz",
|
28
|
+
"minify": "ts-node ../../scripts/minify.ts --dest=dist",
|
29
|
+
"codegen": "graphql-codegen --config ./codegen.cjs",
|
30
|
+
"clean": "rimraf --no-glob ./dist ./coverage ./__data__ ./config/__data__ ./_release ./tsconfig.tsbuildinfo",
|
31
|
+
"lint": "eslint . --ext .ts,.mts,.tsx,.js,.jsx,.cjs,.mjs --cache --cache-location ../../.cache/eslint/evolve.eslintcache",
|
32
|
+
"test": "run-s test-unit",
|
33
|
+
"test-task": "vitest run --passWithNoTests",
|
34
|
+
"test-unit": "vitest run --passWithNoTests",
|
35
|
+
"test-watch": "vitest watch --ui",
|
36
|
+
"fix-all-files": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs,.mdx,.graphql --fix",
|
37
|
+
"typecheck": "tsc --project ./tsconfig.json --noEmit"
|
38
|
+
},
|
24
39
|
"dependencies": {
|
25
|
-
"@
|
26
|
-
"@
|
27
|
-
"@
|
28
|
-
"@flatjs/
|
29
|
-
"@flatjs/
|
30
|
-
"@
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"webpack-
|
40
|
+
"@armit/file-utility": "^0.0.18",
|
41
|
+
"@armit/package": "^0.0.27",
|
42
|
+
"@babel/core": "7.21.8",
|
43
|
+
"@flatjs/common": "1.8.1-next.9",
|
44
|
+
"@flatjs/evolve-preset-babel": "1.8.1-next.5",
|
45
|
+
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.9",
|
46
|
+
"@flatjs/mock": "1.8.1-next.18",
|
47
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
48
|
+
"@types/babel__core": "7.20.0",
|
49
|
+
"babel-loader": "9.1.2",
|
50
|
+
"babel-merge": "3.0.0",
|
51
|
+
"babel-plugin-import": "1.13.6",
|
52
|
+
"better-opn": "3.0.2",
|
53
|
+
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
54
|
+
"css-loader": "6.7.4",
|
55
|
+
"cssnano": "6.0.1",
|
56
|
+
"express": "4.18.2",
|
57
|
+
"fork-ts-checker-webpack-plugin": "8.0.0",
|
58
|
+
"happy-dom": "9.19.2",
|
59
|
+
"html-webpack-plugin": "5.5.1",
|
60
|
+
"image-minimizer-webpack-plugin": "3.8.2",
|
61
|
+
"less": "4.1.3",
|
62
|
+
"less-loader": "11.1.0",
|
63
|
+
"lodash": "4.17.21",
|
64
|
+
"mini-css-extract-plugin": "2.7.6",
|
65
|
+
"postcss": "8.4.23",
|
66
|
+
"postcss-loader": "7.3.0",
|
67
|
+
"react-refresh": "0.14.0",
|
68
|
+
"svgo": "3.0.2",
|
69
|
+
"terser-webpack-plugin": "5.3.9",
|
70
|
+
"webpack": "5.83.1",
|
71
|
+
"webpack-bundle-analyzer": "4.8.0",
|
55
72
|
"webpack-dev-server": "4.15.0",
|
56
|
-
"webpack-sources": "
|
73
|
+
"webpack-sources": "3.2.3"
|
57
74
|
},
|
58
75
|
"devDependencies": {
|
59
|
-
"@
|
60
|
-
"@
|
61
|
-
"@
|
62
|
-
"express": "
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"
|
67
|
-
"
|
68
|
-
"
|
76
|
+
"@armit/eslint-config-bases": "^0.0.15",
|
77
|
+
"@flatjs/testing": "1.8.1-next.6",
|
78
|
+
"@swc/core": "1.3.58",
|
79
|
+
"@types/express": "4.17.17",
|
80
|
+
"@types/node": "20.2.1",
|
81
|
+
"@vitest/coverage-istanbul": "0.31.1",
|
82
|
+
"@vitest/ui": "0.31.1",
|
83
|
+
"eslint": "8.40.0",
|
84
|
+
"imagemin-gifsicle": "7.0.0",
|
85
|
+
"imagemin-jpegtran": "7.0.0",
|
86
|
+
"imagemin-pngquant": "9.0.2",
|
87
|
+
"imagemin-svgo": "10.0.1",
|
88
|
+
"npm-run-all": "4.1.5",
|
89
|
+
"prettier": "2.8.8",
|
90
|
+
"react": "18.2.0",
|
91
|
+
"rimraf": "5.0.1",
|
92
|
+
"swc-unplugin-ts": "1.0.2",
|
93
|
+
"ts-node": "10.9.1",
|
94
|
+
"vite-tsconfig-paths": "4.2.0",
|
95
|
+
"vitest": "0.31.1",
|
96
|
+
"vue-loader": "17.1.1"
|
97
|
+
},
|
98
|
+
"peerDependencies": {
|
99
|
+
"imagemin-gifsicle": ">=7.0.0",
|
100
|
+
"imagemin-jpegtran": ">=7.0.0",
|
101
|
+
"imagemin-pngquant": ">=9.0.2",
|
102
|
+
"imagemin-svgo": ">=10.0.1"
|
103
|
+
},
|
104
|
+
"peerDependenciesMeta": {
|
105
|
+
"imagemin-gifsicle": {
|
106
|
+
"optional": true
|
107
|
+
},
|
108
|
+
"imagemin-jpegtran": {
|
109
|
+
"optional": true
|
110
|
+
},
|
111
|
+
"imagemin-pngquant": {
|
112
|
+
"optional": true
|
113
|
+
},
|
114
|
+
"imagemin-svgo": {
|
115
|
+
"optional": true
|
116
|
+
}
|
69
117
|
},
|
70
118
|
"engines": {
|
71
119
|
"node": ">=16.0.0"
|
72
120
|
},
|
73
121
|
"publishConfig": {
|
74
|
-
"access": "public"
|
75
|
-
|
76
|
-
|
77
|
-
}
|
122
|
+
"access": "public",
|
123
|
+
"directory": "_release/package"
|
124
|
+
}
|
125
|
+
}
|
@@ -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 (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
43
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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 (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
43
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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 (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
43
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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 (
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
43
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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>
|