kn-cli 1.0.112 → 1.0.113
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/build/webpack.config.js +3 -1
- package/package.json +1 -1
package/build/webpack.config.js
CHANGED
|
@@ -379,7 +379,9 @@ const plugins= [
|
|
|
379
379
|
|
|
380
380
|
if(devMode){
|
|
381
381
|
if(devServer?.hot&&devServer?.reactRefresh==true){
|
|
382
|
-
plugins.push( new ReactRefreshWebpackPlugin(
|
|
382
|
+
plugins.push( new ReactRefreshWebpackPlugin({
|
|
383
|
+
overlay:false//关闭全局的错误提示
|
|
384
|
+
}) ) // 添加 React Refresh 插件
|
|
383
385
|
}
|
|
384
386
|
plugins.push(new webpack.SourceMapDevToolPlugin({
|
|
385
387
|
filename: 'sourcemap/[file].map',
|