Skip to content

Commit

Permalink
Fix Stylesheets can only be emitted to web targets bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Trujillo committed Aug 29, 2014
1 parent 2df02c6 commit acd4b4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .npm/plugin/cryptoquick:stylus-multi/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ This package, stylus-multi 0.0.5, now has preliminary Meteor 0.9 support. stylus

### [Stylus](http://learnboost.github.io/stylus/) 0.48.1

Expressive, dynamic, robust CSS. Now supports source maps.

`I'm unsure how to get Meteor to work with these, however. It's necessary to be able to turn them off in production. For now, they remain unset. - Hunter`
Expressive, dynamic, robust CSS.

### [Nib](http://visionmedia.github.io/nib/) 1.0.3

Expand Down
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
summary: 'Stylus, packaged with Nib, Jeet, Rupture, and Axis',
version: '0.0.5',
version: '0.0.6',
name: 'cryptoquick:stylus-multi',
git: 'https://github.com/furrio/meteor-stylus-multi.git'
});
Expand All @@ -16,7 +16,7 @@ Package._transitional_registerBuildPlugin({
jeet: "5.3.0",
rupture: "0.3.1",
axis: "0.2.1",
"stylus-platonic": "https://github.com/cryptoquick/stylus-platonic/archive/7b81e32bf4dc53e54f152a5ea374cbcc7b2f25a2.tar.gz"
"stylus-platonic": "0.1.0"
}
});

Expand Down
5 changes: 2 additions & 3 deletions plugin/compile-stylus.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
var fs = Npm.require('fs');
var stylus = Npm.require('stylus');
var Future = Npm.require('fibers/future');
var stylus = Npm.require('stylus');
var nib = Npm.require('nib');
var jeet = Npm.require('jeet');
var rupture = Npm.require('rupture');
var axis = Npm.require('axis');
var platonic = Npm.require('stylus-platonic');
var path = Npm.require('path');

Plugin.registerSourceHandler("styl", function(compileStep) {
Plugin.registerSourceHandler("styl", {archMatching: 'web'}, function(compileStep) {
var f = new Future;
stylus(compileStep.read().toString('utf8'))
.use(nib())
Expand Down

0 comments on commit acd4b4d

Please sign in to comment.