Skip to content

rhangai/html-ex-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-ex-loader

Allows html processing and transform

// rules
{
	test: /\.html$/,
	loader: "html-ex-loader",
	options: {
		transform: function( loader, $ ) {
			$( "body" ).append( "<div>Oi</div>" );
			loader.emitFile( "index.html", $.html() );
			return `module.exports = {}`;
		},
	},
}

About

Customize HTML loading

Resources

Stars

Watchers

Forks

Packages

No packages published