arcanajs 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -104,7 +104,9 @@ const createClientConfig = () => {
|
|
|
104
104
|
plugins: [
|
|
105
105
|
new clean_webpack_plugin_1.CleanWebpackPlugin(),
|
|
106
106
|
new html_webpack_plugin_1.default({
|
|
107
|
-
template: path_1.default.resolve(cwd, "
|
|
107
|
+
template: fs_1.default.existsSync(path_1.default.resolve(cwd, "public/index.html"))
|
|
108
|
+
? path_1.default.resolve(cwd, "public/index.html")
|
|
109
|
+
: path_1.default.resolve(__dirname, "../lib/server/default-index.html"),
|
|
108
110
|
filename: "index.html",
|
|
109
111
|
inject: "body",
|
|
110
112
|
minify: isProduction
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<!--HEAD_CONTENT-->
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="root"><!--APP_CONTENT--></div>
|
|
10
|
+
<!--ARCANAJS_DATA_SCRIPT-->
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcanajs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "ArcanaJS Framework",
|
|
5
5
|
"main": "framework/lib/index.js",
|
|
6
6
|
"types": "framework/lib/index.d.ts",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"bin"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build
|
|
20
|
-
"build": "node bin/arcanajs.js build",
|
|
21
|
-
"dev": "node bin/arcanajs.js dev",
|
|
22
|
-
"start": "node bin/arcanajs.js start",
|
|
19
|
+
"build": "tsc -p tsconfig.lib.json && cp src/lib/server/default-index.html framework/lib/server/",
|
|
20
|
+
"build:app": "node bin/arcanajs.js build",
|
|
21
|
+
"dev:app": "node bin/arcanajs.js dev",
|
|
22
|
+
"start:app": "node bin/arcanajs.js start",
|
|
23
23
|
"lint": "eslint"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|