@utoo/pack 1.2.8-alpha.1 → 1.2.8-alpha.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.
- package/README.md +32 -30
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -46,44 +46,46 @@ const { build, dev } = require('@utoo/pack');
|
|
|
46
46
|
// Production build
|
|
47
47
|
async function runBuild() {
|
|
48
48
|
await build({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
config: {
|
|
50
|
+
entry: [
|
|
51
|
+
{
|
|
52
|
+
import: "./src/index.ts",
|
|
53
|
+
html: {
|
|
54
|
+
template: "./index.html"
|
|
55
|
+
}
|
|
55
56
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
],
|
|
58
|
+
output: {
|
|
59
|
+
path: "./dist",
|
|
60
|
+
filename: "[name].[contenthash:8].js",
|
|
61
|
+
chunkFilename: "[name].[contenthash:8].js",
|
|
62
|
+
clean: true
|
|
63
|
+
},
|
|
64
|
+
sourceMaps: true
|
|
65
|
+
}
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
// Development mode with HMR
|
|
69
70
|
async function startDev() {
|
|
70
71
|
const server = await dev({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
config: {
|
|
73
|
+
entry: [
|
|
74
|
+
{
|
|
75
|
+
import: "./src/index.ts",
|
|
76
|
+
html: {
|
|
77
|
+
template: "./index.html"
|
|
78
|
+
}
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
],
|
|
81
|
+
output: {
|
|
82
|
+
path: "./dist",
|
|
83
|
+
filename: "[name].[contenthash:8].js",
|
|
84
|
+
chunkFilename: "[name].[contenthash:8].js",
|
|
85
|
+
clean: true
|
|
86
|
+
},
|
|
87
|
+
sourceMaps: true
|
|
88
|
+
}
|
|
87
89
|
});
|
|
88
90
|
}
|
|
89
91
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.2.8-alpha.
|
|
3
|
+
"version": "1.2.8-alpha.2",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "esm/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/code-frame": "7.22.5",
|
|
41
41
|
"@swc/helpers": "0.5.15",
|
|
42
|
-
"@utoo/pack-shared": "1.2.8-alpha.
|
|
42
|
+
"@utoo/pack-shared": "1.2.8-alpha.2",
|
|
43
43
|
"@utoo/style-loader": "^1.0.0",
|
|
44
44
|
"domparser-rs": "^0.0.7",
|
|
45
45
|
"find-up": "4.1.0",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
},
|
|
87
87
|
"repository": "git@github.com:utooland/utoo.git",
|
|
88
88
|
"optionalDependencies": {
|
|
89
|
-
"@utoo/pack-darwin-arm64": "1.2.8-alpha.
|
|
90
|
-
"@utoo/pack-darwin-x64": "1.2.8-alpha.
|
|
91
|
-
"@utoo/pack-linux-arm64-gnu": "1.2.8-alpha.
|
|
92
|
-
"@utoo/pack-linux-arm64-musl": "1.2.8-alpha.
|
|
93
|
-
"@utoo/pack-linux-x64-gnu": "1.2.8-alpha.
|
|
94
|
-
"@utoo/pack-linux-x64-musl": "1.2.8-alpha.
|
|
95
|
-
"@utoo/pack-win32-x64-msvc": "1.2.8-alpha.
|
|
89
|
+
"@utoo/pack-darwin-arm64": "1.2.8-alpha.2",
|
|
90
|
+
"@utoo/pack-darwin-x64": "1.2.8-alpha.2",
|
|
91
|
+
"@utoo/pack-linux-arm64-gnu": "1.2.8-alpha.2",
|
|
92
|
+
"@utoo/pack-linux-arm64-musl": "1.2.8-alpha.2",
|
|
93
|
+
"@utoo/pack-linux-x64-gnu": "1.2.8-alpha.2",
|
|
94
|
+
"@utoo/pack-linux-x64-musl": "1.2.8-alpha.2",
|
|
95
|
+
"@utoo/pack-win32-x64-msvc": "1.2.8-alpha.2"
|
|
96
96
|
}
|
|
97
97
|
}
|