@gravityforms/gulp-tasks
Version:
Configurable Gulp tasks for use in Gravity Forms projects.
28 lines (25 loc) • 576 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();
module.exports = mergeWithCustomize( {
customizeArray: customizeArray( {
optimization: 'append',
plugins: 'append',
} ),
} )( prodBase, {
entry: {
'field-map': [
`${ config.paths.js_src }/legacy/admin/settings/field-map/index.js`,
],
},
output: {
path: config.paths.js_dist,
},
} );