@lark-apaas/fullstack-rspack-preset 1.0.5 → 1.0.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/lib/preset.js +3 -5
- package/package.json +1 -1
package/lib/preset.js
CHANGED
|
@@ -148,7 +148,8 @@ function createRecommendRspackConfig(options) {
|
|
|
148
148
|
filename: 'index.html',
|
|
149
149
|
templateParameters: {
|
|
150
150
|
publicPath,
|
|
151
|
-
}
|
|
151
|
+
},
|
|
152
|
+
minify: false, // 关闭 html 压缩,导致数据注入异常
|
|
152
153
|
}),
|
|
153
154
|
// 性能监控插件
|
|
154
155
|
new slardar_performance_monitor_plugin_1.default(),
|
|
@@ -241,10 +242,7 @@ function createRecommendRspackConfig(options) {
|
|
|
241
242
|
port: 0,
|
|
242
243
|
pathname: `${clientBasePath}/ws`
|
|
243
244
|
},
|
|
244
|
-
overlay:
|
|
245
|
-
errors: false,
|
|
246
|
-
warnings: false,
|
|
247
|
-
},
|
|
245
|
+
overlay: false,
|
|
248
246
|
},
|
|
249
247
|
headers: (req) => {
|
|
250
248
|
// 获取请求的Origin头
|