kn-cli 1.0.111 → 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.
@@ -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() ) // 添加 React Refresh 插件
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/build.js CHANGED
@@ -166,6 +166,8 @@ module.exports= async (options={})=> {
166
166
  // 将项目文件夹下的package.json内dependencies部分合并入 _webpack/package.json
167
167
  webpackPackage.dependencies = {...webpackPackage.dependencies ,...projectPackage.dependencies};
168
168
  webpackPackage.devDependencies = {...webpackPackage.devDependencies ,...projectPackage.devDependencies};
169
+ webpackPackage.overrides = {...webpackPackage.overrides ,...projectPackage.overrides};
170
+
169
171
 
170
172
  // 将package配置写回_webpack/package.json内
171
173
  jsonfile.writeFile(tempWebpackPackagePath,webpackPackage,{spaces: 2, EOL: '\r\n' },function(err){