import { sync as resolve } from 'resolve' ; import { LoaderFactory } from '../interface' ; const factory = ( ) => { return { loader : resolve ( 'svgo-loader' ) , options : { plugins : [ { name : 'removeDoctype' } , { name : 'removeXMLProcInst' } , { name : 'removeComments' } , { name : 'removeMetadata' } , { name : 'removeEditorsNSData' } , { name : 'cleanupAttrs' } , { name : 'minifyStyles' } , { name : 'convertStyleToAttrs' } , { name : 'cleanupIDs' } , { name : 'removeEmptyText' } , { name : 'removeEmptyContainers' } , { name : 'convertColors' } , { name : 'convertTransform' } , { name : 'removeUselessStrokeAndFill' } , { name : 'cleanupNumericValues' } , ] , } , } ; } ; export default factory ;