An open API service indexing awesome lists of open source software.

https://github.com/yuhr/process-loader


https://github.com/yuhr/process-loader

loader webpack

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          





Process Loader


A loader for webpack that lets you work with the content of file.


Install

```bash
npm install --save-dev process-loader
```

Usage

```js
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;
}
}
}
}
]
}
}
```