# code-block-pro/1.28.0/webpack.config.js

Code Block Pro – Beautiful Syntax Highlighting, version 1.28.0. 25 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.28.0/code/webpack.config.js
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.28.0/raw/webpack.config.js
- Modified: 2026-04-12T13:22:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.28.0/code/webpack.config.js#L10-L20`.

```javascript
/* eslint @typescript-eslint/no-require-imports: 0 */
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
const CopyPlugin = require('copy-webpack-plugin');
const RtlCssPlugin = require('rtlcss-webpack-plugin');

module.exports = {
	...defaultConfig,
	devServer: { ...defaultConfig.devServer, host: 'wordpress.test' },
	plugins: [
		...defaultConfig.plugins.filter(
			(filter) =>
				// Remove the rtl plugin
				!(filter instanceof RtlCssPlugin) &&
				filter.constructor.name !== 'RtlCssPlugin',
		),
		new CopyPlugin({
			patterns: [
				{ from: 'node_modules/shiki', to: 'shiki' },
				{ from: 'src/fonts', to: 'fonts' },
			],
		}),
	],
	experiments: { asyncWebAssembly: true },
};

```
