@autobest-ui/scripts 1.5.6-alpha.0 → 1.5.7
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/bin/spa.js +0 -0
- package/bin/ssr.js +0 -0
- package/package.json +2 -2
- package/ssrConfig/server.js +4 -2
package/bin/spa.js
CHANGED
|
File without changes
|
package/bin/ssr.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobest-ui/scripts",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
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": "fb75bd54150164e95c075eef437badba8dcd0728"
|
|
96
96
|
}
|
package/ssrConfig/server.js
CHANGED
|
@@ -20,6 +20,8 @@ process.env.NODE_ENV = 'development';
|
|
|
20
20
|
const options = {
|
|
21
21
|
// 配置文件
|
|
22
22
|
script: getProjectPath(appConfig.hotSsrRunPath),
|
|
23
|
+
// 在ts下,需要指定扩展,否则无法触发restart
|
|
24
|
+
ext: 'js,json,ts,txt',
|
|
23
25
|
restartable: 're',
|
|
24
26
|
verbose: true,
|
|
25
27
|
delay: 3000,
|
|
@@ -87,11 +89,11 @@ function run() {
|
|
|
87
89
|
|
|
88
90
|
if (stats.hasWarnings()) {
|
|
89
91
|
info.warnings.forEach(item => {
|
|
90
|
-
if (item
|
|
92
|
+
if (!item || !item.message || item.message.indexOf('Conflicting order') > -1) {
|
|
91
93
|
return;
|
|
92
94
|
}
|
|
93
95
|
// eslint-disable-next-line no-console
|
|
94
|
-
console.log(item);
|
|
96
|
+
console.log(item.message);
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
}
|