Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mipengine/mip-processor
MIP Base Processor Class
https://github.com/mipengine/mip-processor
Last synced: about 1 month ago
JSON representation
MIP Base Processor Class
- Host: GitHub
- URL: https://github.com/mipengine/mip-processor
- Owner: mipengine
- Created: 2016-10-06T15:52:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T10:17:50.000Z (about 8 years ago)
- Last Synced: 2024-08-10T07:53:20.391Z (5 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mip-processor
===========MIP Base Processor Class
### usage
```js
var MipProcessor = require('mip-processor');
var less = require('less');var LessProcessor = MipProcessor.derive({
name: 'LessCompiler',
files: ['*.less'],processFile: function (file) {
var paths = [];var options = {
relativeUrls: true,
compress: true,
paths: paths,
filename: file.fullPath
};return less.render(file.data, options).then(
function (result) {
file.outputPath = file.outputPath.replace(/\.less$/i, '.css');
file.setData(result.css);
return true;
}
);
}
});
```