403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.217.32
Web Server : Apache
System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : delarice ( 2406)
PHP Version : 8.3.36
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/delarice/www/wp-content/plugins/elementor-pro/modules/notes/.grunt-config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/elementor-pro/modules/notes/.grunt-config/webpack.config.js
const webpack = require( 'webpack' );
const path = require( 'path' );
const TerserPlugin = require( 'terser-webpack-plugin' );

const common = {
	name: 'notes',
	target: 'web',
	context: __dirname,
	entry: {
		notes: path.resolve( __dirname, '../assets/js/notes.js' ), // Load in the editor or in the frontend when user connected
		'notes-app-initiator': path.resolve( __dirname, '../assets/js/notes-app-initiator.js' ), // Load in the editor preview or in the frontend when user connected
	},
	output: {
		path: path.resolve( __dirname, '../../../assets/js/notes' ),
		uniqueName: 'elementor-pro-notes',
	},
	externals: {
		react: 'React',
		'react-dom': 'ReactDOM',
		'@wordpress/i18n': 'wp.i18n',
	},
	plugins: [
		new webpack.ProvidePlugin( {
			react: 'React',
			'react-dom': 'ReactDOM',
			PropTypes: 'prop-types',
			__: [ '@wordpress/i18n', '__' ],
		} ),
	],
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: [
					{
						loader: 'babel-loader',
						options: {
							presets: [ '@wordpress/default' ],
							plugins: [
								[ '@wordpress/babel-plugin-import-jsx-pragma' ],
								[ '@babel/plugin-transform-react-jsx', { pragmaFrag: 'React.Fragment' } ],
								[ '@babel/plugin-transform-runtime' ],
							],
						},
					},
					{ loader: 'webpack-conditional-loader' },
				],
			},
		],
	},
};

module.exports = {
	development: {
		...common,
		output: {
			...common.output,
			filename: '[name].js',
		},
		mode: 'development',
		devtool: 'source-map',
	},
	production: {
		...common,
		mode: 'production',
		output: {
			...common.output,
			filename: '[name].min.js',
		},
		performance: { hints: false },
		optimization: {
			minimize: true,
			minimizer: [ new TerserPlugin() ],
		},
	},
};

Youez - 2016 - github.com/yon3zu
LinuXploit