import { htmlRegex } from '../config/regex' ; import { RuleSetRule } from '@balm-core/index' ; function htmlLoader ( ) { const options = Object . assign ( { minimize : { removeAttributeQuotes : false } , esModule : BalmJS . config . scripts . useEsModule } , BalmJS . config . scripts . htmlLoaderOptions ) ; return { test : `${ htmlRegex }i` , loader : require . resolve ( 'html-loader' ) , options } ; } export default htmlLoader ;