UNPKG

@gravityforms/gulp-tasks

Version:
23 lines (19 loc) 511 B
/** * 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, } );