UNPKG

@gravityforms/gulp-tasks

Version:
27 lines (21 loc) 592 B
/** * External Dependencies */ import { createRequire } from 'node:module'; const require = createRequire( import.meta.url ); const { mergeWithCustomize, customizeArray } = require( 'webpack-merge' ); /** * Internal Dependencies */ import getConfig from '../../config.js'; import devBase from './configs/dev-base.js'; const { config } = getConfig(); const webpackConfig = config?.webpack?.legacy?.webpackConfig || {}; export default mergeWithCustomize( { customizeArray: customizeArray( { optimization: 'append', plugins: 'append', } ), } )( devBase, { ...webpackConfig, } );