process-loader
v1.1.1
Published
A loader for webpack that lets you work with the content of file.
Downloads
26
Readme
npm install --save-dev process-loader
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;
}
}
}
}
]
}
}