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.solweb3.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: {
        web3: path.resolve(__dirname, 'src/static/js/sol-web3/index.js'),
    },
    output: {
        ...defaultConfig.output,
        path: path.resolve(__dirname, 'src/static/js/sol-web3/dist'),
        filename: 'index.js'
    },
    resolve: {
        extensions: ['.js'],
        ...defaultConfig.resolve,
        fallback: {
            "crypto": require.resolve("crypto-browserify"),
            "vm": require.resolve("vm-browserify"),
            "stream": require.resolve("stream-browserify"),
        }
    },
    module: {
        rules: [
            ...defaultConfig.module?.rules || [],
            {
                test: /\.js$/,
                exclude: /node_modules/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ['@babel/preset-env'],
                        plugins: ['@babel/plugin-transform-runtime']
                    }
                }
            }
        ]
    },
    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