var importcss = require('rework-npm')
  , rework = require('rework')
  , variables = require('rework-vars')
  , read = require('fs').readFileSync

module.exports = function (opts, cb) {
  opts = opts || {}
  var css = rework(read(opts.entry, 'utf8'))
  css.use(importcss())
  if (opts.variables) {
    css.use(variables(opts.variables))
  }
  if (opts.transform) {
    otps.transform(file, cb)
  } else {
    cb(null, css.toString())
  }
}

var importcss = require('rework-npm')
  , rework = require('rework')
  , variables = require('rework-vars')
  , path = require('path')
  , read = require('fs').readFileSync

module.exports = function (opts, cb) {
  opts = opts || {}
  var css = rework(read(opts.entry, 'utf8'))
  css.use(importcss(path.dirname(opts.entry)))
  if (opts.variables) {
    css.use(variables(opts.variables))
  }
  if (opts.transform) {
    otps.transform(file, cb)
  } else {
    cb(null, css.toString())
  }
}

Send the directory of the entry file into rework-npm as cwd
Send the directory of the entry file into rework-npm as cwd