@autobest-ui/scripts 1.5.4 → 1.5.5
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 +5 -4
- package/package.json +2 -2
- package/spaConfig/webpack.base.js +1 -0
- package/ssrConfig/webpack.dev.js +2 -1
package/README.md
CHANGED
|
@@ -89,10 +89,11 @@ module.exports = function(
|
|
|
89
89
|
| buildClientLoadableConfig.writeToDiskFilename | build ssr 自定义按需加载路径存储库文件存放位置 |
|
|
90
90
|
|
|
91
91
|
##### 公共配置
|
|
92
|
-
|
|
|
93
|
-
|
|
94
|
-
| htmlPluginTemplate
|
|
95
|
-
|
|
|
92
|
+
| 参数名 | 说明 |
|
|
93
|
+
|--------------------|------|
|
|
94
|
+
| htmlPluginTemplate | client端,模板html路径 |
|
|
95
|
+
| htmlPluginFavicon | client端,favicon.ico路径,也可以通过nginx配置 |
|
|
96
|
+
| alias | debug, build 下文件别名,同webpack.resolve.alias一样 |
|
|
96
97
|
|
|
97
98
|
## 自定义
|
|
98
99
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobest-ui/scripts",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "utils for project tools",
|
|
6
6
|
"bin": {
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"webpack-merge": "5.8.0",
|
|
93
93
|
"webpack-node-externals": "3.0.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "40c24d15e331c0c31aa98da878b00d9e412f576e"
|
|
96
96
|
}
|
|
@@ -10,6 +10,7 @@ module.exports = (isProd, appConfig, extendEnv) => {
|
|
|
10
10
|
new HtmlWebpackPlugin({
|
|
11
11
|
inject: true,
|
|
12
12
|
template: getProjectPath(appConfig.htmlPluginTemplate),
|
|
13
|
+
favicon: appConfig.htmlPluginFavicon ? getProjectPath(appConfig.htmlPluginFavicon) : undefined,
|
|
13
14
|
templateParameters: isProd
|
|
14
15
|
? (compilation, assets, tags, options) => {
|
|
15
16
|
tags.headTags.forEach(tag => {
|
package/ssrConfig/webpack.dev.js
CHANGED
|
@@ -37,7 +37,8 @@ module.exports = function (appConfig, extendEnv) {
|
|
|
37
37
|
}),
|
|
38
38
|
new HtmlWebpackPlugin({
|
|
39
39
|
inject: true,
|
|
40
|
-
template: getProjectPath(appConfig.htmlPluginTemplate)
|
|
40
|
+
template: getProjectPath(appConfig.htmlPluginTemplate),
|
|
41
|
+
favicon: appConfig.htmlPluginFavicon ? getProjectPath(appConfig.htmlPluginFavicon) : undefined
|
|
41
42
|
})
|
|
42
43
|
],
|
|
43
44
|
resolve: {
|