UNPKG

@gravityforms/gulp-tasks

Version:
34 lines (29 loc) 741 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 prodBase from './configs/prod-base.js'; import externals from './externals/admin/index.js'; const { config } = getConfig(); export default mergeWithCustomize( { customizeArray: customizeArray( { optimization: 'append', plugins: 'append', } ), } )( prodBase, { externals, entry: { utils: [ `${ config.paths.utils_src }/entry.js`, ], }, output: { path: config.paths.utils_dist ? config.paths.utils_dist : config.paths.js_dist, }, } );