????JFIF??x?x????'
Server IP : 104.21.96.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/buyeaa.com/wp-content/plugins/yith-woocommerce-compare/ |
Upload File : |
const path = require( 'path' ), defaultConfig = require( '@wordpress/scripts/config/webpack.config' ), WooCommerceDependencyExtractionWebpackPlugin = require( '@woocommerce/dependency-extraction-webpack-plugin' ); module.exports = { ...defaultConfig, devtool : 'source-map', entry : { 'frontend': './assets/js/src/frontend.js', 'admin': './assets/js/src/admin.js', }, mode: 'production', module: { rules: [ { test: /\.(js|jsx)$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: [ '@babel/preset-env', '@babel/react' ], plugins: [ [ '@babel/transform-runtime' ] ], }, } } ] }, optimization: { minimize: false, }, output : { filename: (pathData) => { let name = pathData.chunk.name, components = name.split( '/' ), fileName = components?.[components.length - 1]; fileName = `woocompare-${fileName}` .replace('-frontend', ''); components[components.length - 1] = `${fileName}.js`; return components.join( '/' ); }, path: path.resolve( __dirname, 'assets/js' ), libraryTarget: 'window' }, resolve: { extensions: ['*', '.js', '.jsx'], }, plugins: [ ...defaultConfig.plugins.filter( ( plugin ) => ! [ 'DependencyExtractionWebpackPlugin', 'CleanWebpackPlugin', ].includes( plugin.constructor.name ) ), new WooCommerceDependencyExtractionWebpackPlugin(), ], };