@gravityforms/gulp-tasks
Version:
Configurable Gulp tasks for use in Gravity Forms projects.
30 lines (27 loc) • 676 B
JavaScript
/**
* External Dependencies
*/
const { mergeWithCustomize, customizeArray } = require( 'webpack-merge' );
/**
* Internal Dependencies
*/
const prodBase = require( './configs/prod-base.js' );
const externals = require( './externals/adminblocks' );
const getConfig = require( '../../config' );
const { config } = getConfig();
module.exports = mergeWithCustomize( {
customizeArray: customizeArray( {
optimization: 'append',
plugins: 'append',
} ),
} )( prodBase, {
entry: config.webpack?.overrides?.entry?.adminblocks || {
blocks: [
`${ config.paths.js_src }/legacy/admin/blocks/index.js`,
],
},
externals,
output: {
path: config.paths.js_dist,
},
} );