# woo-vipps/6.2.1/payment/src/admin/blocks/webpack.config.js

Pay with Vipps and MobilePay for WooCommerce, version 6.2.1. 19 lines.

- Page: https://pluginprobe.com/plugins/woo-vipps/6.2.1/code/payment/src/admin/blocks/webpack.config.js
- Raw: https://pluginprobe.com/plugins/woo-vipps/6.2.1/raw/payment/src/admin/blocks/webpack.config.js
- Modified: 2024-09-16T11:06:40+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/woo-vipps/6.2.1/code/payment/src/admin/blocks/webpack.config.js#L10-L20`.

```javascript
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const WooCommerceDependencyExtractionWebpackPlugin = require( '@woocommerce/dependency-extraction-webpack-plugin' );
const path = require( 'path' );

module.exports = {
	...defaultConfig,
	output: {
		path: path.resolve(__dirname, '../../../admin/blocks/dist'),
		filename: '[name].js',
	},
	plugins: [
		...defaultConfig.plugins.filter(
			( plugin ) =>
				plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'
		),
		new WooCommerceDependencyExtractionWebpackPlugin(),
	],
};

```
