mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
16 lines
382 B
JavaScript
16 lines
382 B
JavaScript
var path = require('path');
|
|
|
|
var escape = function (str) {
|
|
return str.replace(/[\[\]\/{}()*+?.\\^$|-]/g, "\\$&");
|
|
};
|
|
|
|
var regexp = ['lib', 'test'].map(function (i) {
|
|
return '^' + escape(path.join(__dirname, i) + path.sep);
|
|
}).join('|');
|
|
|
|
require('6to5/register')({
|
|
only: new RegExp('(' + regexp + ')'),
|
|
ignore: false
|
|
});
|
|
module.exports = require('./lib/postcss');
|