swico 2.0.0-beta.36 → 2.0.0-beta.38
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 +4 -4
- package/package.json +1 -3
- package/src/config/rspack.prod.js +3 -20
package/README.md
CHANGED
|
@@ -7,15 +7,15 @@ Swico,发音近似于“斯威扣”。
|
|
|
7
7
|
|
|
8
8
|
## 主要特性
|
|
9
9
|
|
|
10
|
-
- 构建工具基于
|
|
10
|
+
- 构建工具基于Rspack 1.x,多线程驱动高度并行化计算,显著提升编译性能。
|
|
11
11
|
|
|
12
12
|
- 提供Vue3和React18两种开发模板选择,默认集成TypeScript5。同时最大化统一这两种模板的开发API。
|
|
13
13
|
|
|
14
|
-
- 提供可配置化路由方案,基于React-
|
|
14
|
+
- 提供可配置化路由方案,基于React-Router7和Vue-Router4进行二次封装,支持路由嵌套,懒加载,动态参数,装饰校验等功能。
|
|
15
15
|
|
|
16
|
-
-
|
|
16
|
+
- 内置支持ESLint / Prettier / Husky等编码风格以及代码提交规范约束功能配置,保证代码风格统一以及 Git 提交规范。
|
|
17
17
|
|
|
18
|
-
-
|
|
18
|
+
- 提供配置文件可按需对架构配置进行修改扩展,例如Alias映射,本地请求代理等。
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
官方文档:[SWICO 官方文档](https://scw1997.github.io/swico-docs)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swico",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.38",
|
|
4
4
|
"description": "Simple, efficient, and practical front-end framework",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"ecmascript",
|
|
11
11
|
"react",
|
|
12
12
|
"vue",
|
|
13
|
-
"cli",
|
|
14
13
|
"swico",
|
|
15
|
-
"template",
|
|
16
14
|
"rspack"
|
|
17
15
|
],
|
|
18
16
|
"bin": {
|
|
@@ -90,26 +90,9 @@ function default_1(options) {
|
|
|
90
90
|
comments: false
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
chunks: 'all',
|
|
97
|
-
cacheGroups: {
|
|
98
|
-
vendors: {
|
|
99
|
-
test: /[\\/]node_modules[\\/]/,
|
|
100
|
-
priority: -10,
|
|
101
|
-
chunks: 'all',
|
|
102
|
-
reuseExistingChunk: true
|
|
103
|
-
},
|
|
104
|
-
commons: {
|
|
105
|
-
minSize: 0,
|
|
106
|
-
minChunks: 2,
|
|
107
|
-
priority: -20,
|
|
108
|
-
chunks: 'all',
|
|
109
|
-
reuseExistingChunk: true
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
93
|
+
}),
|
|
94
|
+
new core_1.rspack.LightningCssMinimizerRspackPlugin({})
|
|
95
|
+
]
|
|
113
96
|
},
|
|
114
97
|
plugins: [
|
|
115
98
|
...(isPublicDirExist || copyConfig.length > 0
|