import { Configuration } from "webpack" ; export function webpack ( config ) { return { ... config , module : { ... config . module , rules : [ ... config . module . rules , { test : /\.html$/ , use : [ { loader : require . resolve ( "html-loader" ) } , ] } , ] } } ; }