https://github.com/yuhr/process-loader
https://github.com/yuhr/process-loader
loader webpack
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuhr/process-loader
- Owner: yuhr
- License: mit
- Created: 2017-06-16T17:49:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T18:48:26.000Z (about 9 years ago)
- Last Synced: 2025-08-30T12:35:11.577Z (10 months ago)
- Topics: loader, webpack
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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;
}
}
}
}
]
}
}
```