@gravityforms/gulp-tasks
Version:
Configurable Gulp tasks for use in Gravity Forms projects.
27 lines (21 loc) • 592 B
JavaScript
/**
* 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,
} );