From e3fec29b528e150f16719a8351843b596b979dbc Mon Sep 17 00:00:00 2001 From: Kang Huaishuai Date: Wed, 16 Jun 2021 16:15:22 +0800 Subject: [PATCH] fix config Signed-off-by: Kang Huaishuai --- js/builds/event.js | 2 +- webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/builds/event.js b/js/builds/event.js index 74397af..dae1f8f 100644 --- a/js/builds/event.js +++ b/js/builds/event.js @@ -271,7 +271,7 @@ $('.trigger_build_modal_button').on('click', () => { history.pushState( { key_id: 'buildNav' }, null, - url.getRepoFullNameUrl() + '/builds/' + res.build_id, + url.getRepoFullNameUrl() + '/builds', ); location.reload(); diff --git a/webpack.config.js b/webpack.config.js index 2117f76..2b842b0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -161,8 +161,8 @@ let config = { ], optimization: { minimize: true, //是否进行代码压缩 - emitOnErrors: false, // 5.0 - // noEmitOnErrors: true, // 4.0 //取代 new webpack.NoEmitOnErrorsPlugin(),编译错误时不打印输出资源。 + emitOnErrors: false, // v5 + // noEmitOnErrors: true, // v4 //取代 new webpack.NoEmitOnErrorsPlugin(),编译错误时不打印输出资源。 // runtimeChunk: 'single', // v4 add, replace CommonsChunkPlugin