Skip to content

Commit

Permalink
Export the import API as process()
Browse files Browse the repository at this point in the history
  • Loading branch information
tivac committed Nov 3, 2015
1 parent 9f0a645 commit 1ade1ba
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
"use strict";

var fs = require("fs"),

postcss = require("postcss");

postcss([
require("./plugins/values.js"),
require("./plugins/scoping.js"),
require("./plugins/composition.js")
])
.process(fs.readFileSync(process.argv[2], { encoding: "utf8" }))
.then(function(result) {
console.log(result.css);
}, console.log.bind(console));
exports.process = require("./imports").process;

0 comments on commit 1ade1ba

Please sign in to comment.