$16 GRAYBYTE WORDPRESS FILE MANAGER $34

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.groupg.com.sg/wp-content/plugins/admin-menu-editor-pro/

HOME
Current File : /home/bqrcodec/contact.groupg.com.sg/wp-content/plugins/admin-menu-editor-pro//webpack.config.js
import webpack from 'webpack';
import * as path from "path";
import * as url from "url";
import {WebpackManifestPlugin} from "webpack-manifest-plugin";

// noinspection JSUnusedGlobalSymbols - Webpack uses this function to get the config.
export default (env, argv) => {
	const currentMode = (argv.mode === 'production') ? 'production' : 'development';
	const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

	return {
		mode: currentMode,
		entry: {
			'admin-customizer': './extras/modules/admin-customizer/admin-customizer.ts'
			/*
			Note: The "menu-styler-ui.ts" script is not compiled because then you would
			need to do a bunch of work to ensure that "menu-styler-features.ts" is compiled
			as a separate entry point but the shared code is not duplicated. You would likely
			have to extract the shared code into a separate file and then make the "features"
			script a thin wrapper that just imports and runs the shared code.
			That doesn't seem worth the effort at this time.
			 */
		},
		output: {
			path: path.resolve(__dirname, 'dist'),
			filename: '[name].bundle.js',
			chunkLoadingGlobal: 'wsAmeWebpackChunk',
		},
		optimization: {
			runtimeChunk: 'single',
			splitChunks: {
				cacheGroups: {
					customizable: {
						test: /[\\\/]customizable\./,
						name: 'customizable',
						chunks: 'all',
						enforce: true
					},
				}
			}
		},
		plugins: [
			new webpack.DefinePlugin({
				AME_IS_PRODUCTION: JSON.stringify(currentMode === 'production'),
			}),
			//This could be used later to automatically find and load the required
			//chunks for each entry point. However, it doesn't handle inter-chunk
			//dependencies.
			new WebpackManifestPlugin({
				fileName: 'build.manifest.json',
				generate: (seed, files) => {
					const entryPoints = new Set()
					files.forEach(
						(file) => ((file.chunk || {})._groups || []).forEach(
							(group) => entryPoints.add(group)
						)
					)
					const entries = [...entryPoints]
					return entries.reduce((acc, entry) => {
						const name = (entry.options || {}).name
							|| (entry.runtimeChunk || {}).name
						const files = [].concat(
							...(entry.chunks || []).map((chunk) => Array.from(chunk.files))
						).filter(Boolean)
						return name ? {...acc, [name]: files} : acc
					}, seed)
				}
			}),
		],
		devtool: 'source-map',
		module: {
			rules: [
				{
					test: /\.ts$/,
					use: {
						loader: 'ts-loader',
						options: {
							configFile: path.resolve(__dirname, 'tsconfig.json')
						}
					},
					exclude: /node_modules/
				}
			]
		},
		resolve: {
			extensions: ['.ts', '.js']
		}
	};
};

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
19 Mar 2026 4.43 AM
bqrcodec / bqrcodec
0755
ajax-wrapper
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
css
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
customizables
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
dist
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
extras
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
images
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
includes
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
js
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
license-manager
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
modules
--
6 Jun 2024 10.37 AM
bqrcodec / bqrcodec
0755
plugin-updates
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
wp-dependency-wrapper
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
extras.php
81.291 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
menu-editor.php
0.885 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
package-lock.json
143.518 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
package.json
0.428 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
phpcs.xml
3.237 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
readme.txt
77.493 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
requirement-notes.md
0.294 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
tsconfig.json
0.193 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
uninstall.php
4.441 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644
webpack.config.js
2.563 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF