https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/snelapotheeks.com/wp-content/plugins/mycryptocheckout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/snelapotheeks.com/wp-content/plugins/mycryptocheckout/webpack.config.js
const path = require('path');
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
    mode: 'production', // Add this line
    ...defaultConfig,
    devtool: false,
    entry: {
        // Change the entry point to your specific file
        index: path.resolve(__dirname, 'src/ecommerce/woocommerce/react/index.js'),
    },
    output: {
        ...defaultConfig.output,
        // Change the output directory and filename
        path: path.resolve(__dirname, 'src/ecommerce/woocommerce/js'),
        filename: 'index.js'
    },
    optimization: {
        minimize: true, // Ensure this is true if not already set by default in production mode
        minimizer: [
            new TerserPlugin({
                terserOptions: {
                    // You can specify additional options here according to your needs
                    compress: {
                        drop_console: true, // Removes console logs for production
                    },
                },
            }),
        ],
    },
};

https://t.me/ARX49 - 2025