@gravityforms/gulp-tasks
Version:
Configurable Gulp tasks for use in Gravity Forms projects.
23 lines (19 loc) • 511 B
JavaScript
/**
* External Dependencies
*/
const { mergeWithCustomize, customizeArray } = require( 'webpack-merge' );
/**
* Internal Dependencies
*/
const prodBase = require( './configs/prod-base.js' );
const getConfig = require( '../../config' );
const { config } = getConfig();
const webpackConfig = config?.webpack?.legacy?.webpackConfig || {};
module.exports = mergeWithCustomize( {
customizeArray: customizeArray( {
optimization: 'append',
plugins: 'append',
} ),
} )( prodBase, {
...webpackConfig,
} );