PluginProbe
Packeta / 2.3.2
Packeta v2.3.2
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / webpack.config.js

webpack.config.js in Packeta 2.3.2, at webpack.config.js

19 lines 562 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
2 const WooCommerceDependencyExtractionWebpackPlugin = require( '@woocommerce/dependency-extraction-webpack-plugin' );
3 const { resolve } = require( 'path' );
4
5 module.exports = {
6 ...defaultConfig,
7 output: {
8 ...defaultConfig.output,
9 path: resolve( process.cwd(), 'public/block' ),
10 },
11 plugins: [
12 ...defaultConfig.plugins.filter(
13 ( plugin ) =>
14 plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'
15 ),
16 new WooCommerceDependencyExtractionWebpackPlugin(),
17 ],
18 };
19