You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
332 B
21 lines
332 B
1 month ago
|
var scss = require('./index');
|
||
|
|
||
|
var compiler = (function() {
|
||
|
return {
|
||
|
match: /\.css$/,
|
||
|
ext: '.scss',
|
||
|
compile: function(str, fn) {
|
||
|
scss.parse(str, function(err, css) {
|
||
|
if(err) {
|
||
|
fn(err);
|
||
|
} else {
|
||
|
fn(null, css);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
})();
|
||
|
|
||
|
|
||
|
module.exports = compiler;
|