import { plugin } from '../utils/plugins' ; import { IAfterProdBuild , IBuildConfigPipe , ILoaderExcludePipe , ILoaderIncludePipe , ILoaderOptionsPipe , } from '../utils/define' ; export const pipeConfig = ( pipe ) => { plugin . buildConfigPipes . push ( pipe ) ; } ; export const pipeBundleConfig = ( pipe ) => { plugin . bundleConfigPipes . push ( pipe ) ; } ; export const pipeStyleLoaderOptions = ( pipe ) => { plugin . buildConfigStyleLoaderOptionsPipes . push ( pipe ) ; } ; export const pipeCssLoaderOptions = ( pipe ) => { plugin . buildConfigCssLoaderOptionsPipes . push ( pipe ) ; } ; export const pipeSassLoaderOptions = ( pipe ) => { plugin . buildConfigSassLoaderOptionsPipes . push ( pipe ) ; } ; export const pipeLessLoaderOptions = ( pipe ) => { plugin . buildConfigLessLoaderOptionsPipes . push ( pipe ) ; } ; export const pipeBabelLoaderOptions = ( pipe ) => { plugin . buildConfigBabelLoaderOptionsPipes . push ( pipe ) ; } ; export const pipeJsInclude = ( pipe ) => { plugin . buildConfigJsLoaderIncludePipes . push ( pipe ) ; } ; export const pipeSassInclude = ( pipe ) => { plugin . buildConfigSassLoaderIncludePipes . push ( pipe ) ; } ; export const pipeLessInclude = ( pipe ) => { plugin . buildConfigLessLoaderIncludePipes . push ( pipe ) ; } ; export const pipeSassExclude = ( pipe ) => { plugin . buildConfigSassLoaderExcludePipes . push ( pipe ) ; } ; export const pipeLessExclude = ( pipe ) => { plugin . buildConfigLessLoaderExcludePipes . push ( pipe ) ; } ; export const afterProdBuild = ( callback ) => { plugin . buildAfterProdBuild . push ( callback ) ; } ;