From d8c802c2f19e5676fce2033096cec8996b911182 Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Tue, 15 Jul 2025 13:04:42 +0200 Subject: [PATCH] Update webpack configuration to copy index.html to payment/success/success, improving clarity in log messages for asset copying. --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index f7dc080..d8f760e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -87,16 +87,16 @@ const CopyAssetsPlugin = { // Copy index.html to payment/success directory for callback const indexSrc = path.resolve(__dirname, 'dist/index.html'); const paymentSuccessDir = path.resolve(__dirname, 'dist/payment/success'); - const paymentSuccessDest = path.resolve(__dirname, 'dist/payment/success/index.html'); + const paymentSuccessDest = path.resolve(__dirname, 'dist/payment/success/success'); try { // Create payment/success directory if it doesn't exist if (!fs.existsSync(paymentSuccessDir)) { fs.mkdirSync(paymentSuccessDir, { recursive: true }); } cpSync(indexSrc, paymentSuccessDest); - console.log('Index.html copied to payment/success successfully'); + console.log('Index.html copied to payment/success/success successfully'); } catch (err) { - console.error('Error copying index.html to payment/success:', err); + console.error('Error copying index.html to payment/success/success:', err); } }); },