HEX
Server: LiteSpeed
System: Linux 110.webhostingindonesia.co.id 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: uvlnfyba (10197)
PHP: 7.4.33
Disabled: opcache_get_status,exec,passthru,shell_exec,system,popen,mail,proc_open,show_source,
Upload Files
File: /home/jkwebsite.my.id/data.jkwebsite.my.id/wp-content/themes/vandana-lite/webpack.config.js
const path = require( 'path' );

const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );

// Import the helper to find and generate the entry points in the src directory
const { getWebpackEntryPoints } = require( '@wordpress/scripts/utils/config' );

// CSS minimizer
const CssMinimizerPlugin = require( 'css-minimizer-webpack-plugin' );

// Add any a new entry point by extending the webpack config.
module.exports = {
	...defaultConfig,
	mode: 'development',
	devtool: 'inline-source-map',
	entry: {
		...getWebpackEntryPoints(),
		dashboard: './src/index.js',
	},
	output: {
		path: path.resolve( __dirname, 'build' ),
	},
	optimization: {
		minimizer: [
			...defaultConfig.optimization.minimizer,
			new CssMinimizerPlugin(),
		],
	},
};