Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 216.73.216.9
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/plugins/really-simple-ssl/settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/plugins/really-simple-ssl/settings/webpack.feature.config.js
const path = require('path');
const defaultConfig = require("@wordpress/scripts/config/webpack.config");
const featureFolders = ['two-fa']; // Add more folders as needed
const isProduction = process.env.NODE_ENV === 'production';
const { ProvidePlugin, Compilation } = require('webpack');
const fs = require('fs');

module.exports = {
    ...defaultConfig,
    entry: featureFolders.reduce((entries, folder) => {
        const jsPath = path.resolve(__dirname, `../security/wordpress/${folder}/assets/js/index.js`);
        const scssPath = path.resolve(__dirname, `../security/wordpress/${folder}/assets/css/${folder}.scss`);
        // check if the file exists
        if (fs.existsSync(jsPath)) {
            entries[`${folder}/assets`] = jsPath;
        } else {
            console.error(`File ${jsPath} does not exist`);
        }
        if (fs.existsSync(scssPath)) {
            entries[`${folder}/styles`] = scssPath;
        } else {
            console.error(`File ${scssPath} does not exist`);
        }
        return entries;
    }, {}),
    output: {
        path: path.resolve(__dirname, `../assets/features/`), // Output to the features directory
        filename: '[name].min.js',
        clean: false,
    },
    resolve: {
        ...defaultConfig.resolve,
        modules: [
            path.resolve(__dirname, '../settings/node_modules'), // Look in settings' node_modules
            path.resolve(__dirname, '../node_modules'), // Look in the root node_modules
            'node_modules', // Fallback to default node_modules
        ],
        fallback: {
            "path": require.resolve("path-browserify"),
            "stream": require.resolve("stream-browserify"),
            "buffer": require.resolve("buffer/"),
        },
    },
    module: {
        ...defaultConfig.module,
        rules: [
            ...defaultConfig.module.rules,
            {
                test: /\.js$/,
                exclude: /node_modules/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        presets: ['@babel/preset-env'],
                    },
                },
            },
        ],
    },
    plugins: [
        ...defaultConfig.plugins,
        new ProvidePlugin({
            Buffer: ['buffer', 'Buffer'],
            process: 'process/browser',
        }),
    ],
    optimization: {
        ...defaultConfig.optimization,
        minimize: isProduction,
    },
    stats: {
        errors: true,
        moduleTrace: true,
        errorDetails: true,
    },
};

Anon7 - 2022
AnonSec Team