process-loader
v1.0.0Install
npm install --save-dev process-loader
Usage
module.exports = {
module: {
rules: [
{
test: /\.html$/,
use: {
loader: 'process-loader',
options: {
process: (content, path) => {
// some pretty stuff
console.log(path);
console.log(content);
return content;
}
}
}
}
]
}
}