package.index.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smithy Show documentation
Show all versions of smithy Show documentation
Preprocessing of CSS/JS meta-languages made easy through a singular API.
The newest version!
'use strict';
//
// Define set of pre-processors to expose.
//
var processors = {
styl: 'stylus',
stylus: 'stylus',
less: 'less',
sass: 'sass',
coffee: 'coffeescript',
coffeescript: 'coffeescript',
jsx: 'reactjsx',
css: 'rework'
};
//
// Generate lazy requiring statements to keep the memory footprint low.
//
Object.keys(processors).forEach(function lazyrequire(extension) {
var cache;
Object.defineProperty(exports, extension, {
get: function getter() {
return cache || (cache = require('./lib/' + processors[extension]));
}
});
});
//
// Expose map of preprocessors by file extension.
//
exports.processors = processors;
//
// Expose list of extensions.
//
exports.extensions = Object.keys(processors).map(function map(ext) {
return '.' + ext;
});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy