UNPKG

ams

Version:

ams - asset management system - plugin enabled build tool with jquery like API

28 lines (24 loc) 453 B
/* * CSS processor. */ var process = require('clean-css').process; /** * Default options. * @type {Object} * @export */ exports.options = { pattern: /\.css$/ }; /** * Minify css. * @param {string} path path to file. * @param {string} data module body. * @param {Object} o current configuration. * @this Build * @return {string} wraped module string. * @export */ exports.run = function(path, data, o) { return process(data); };