| Server IP : 5.83.47.51 / Your IP : 216.73.217.19 Web Server : Apache System : Linux hosting.nxthost.com 5.14.0-687.44.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 9 11:11:28 EDT 2026 x86_64 User : esteemro ( 1261) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/esteemro/public_html/wp-content/plugins/checkout-for-woocommerce/ |
Upload File : |
// Imports
const path = require('path');
const merge = require('webpack-merge');
// Config Parts
const common = require("./config/webpack.common.js");
const development = require("./config/webpack.development.js");
const production = require("./config/webpack.production.js");
const sourcesDir = "./sources";
const mainDir = path.resolve(__dirname, '');
module.exports = mode => {
let config = {
mode: mode,
context: __dirname,
output: {
path: path.resolve(__dirname, 'assets/dist' )
}
};
let delete_min_files = (process.env.CFW_DELETE_MIN !== undefined) ? process.env.CFW_DELETE_MIN : false;
let travis_build = (process.env.CFW_TRAVIS !== undefined) ? process.env.CFW_TRAVIS : false;
if( mode === "development" ) {
return merge( common(sourcesDir), development( process.env.npm_package_version ), config );
}
return merge( common(sourcesDir), production( process.env.npm_package_version, travis_build), config );
};