brunch / stylus-brunch

Adds Stylus support to Brunch
MIT License
21 stars 2 forks source link

Can't compile Jeet #40

Closed nathanhornby closed 8 years ago

nathanhornby commented 8 years ago

I'm moving a project over to the Phoenix framework which uses brunch, and having moved my Stylus code into the project I'm receiving the following error:

15 Jan 16:39:45 - error: Compiling of web/static/css/main.styl failed. node_modules/jeet/stylus/jeet.js:2:10 1| module.exports = function(opts) { 2| return function(style) { ---------------^ 3| style.include(__dirname); 4| } 5| } expected "ident" or "string", got "return"

main.styl:

  // Includes
  @import 'jeet'
  [...]

I've never seen this when compiling with standard Stylus, so am I right in assuming this is a bug in this plugin? What's most odd is that it's failing on a JavaScript file.

nathanhornby commented 8 years ago

Ah my apologies, seems this is more my inexperience with brunch. For anyone else that might end up here, I needed to add it as a plugin via brunch itself:

plugins: {
    stylus: {
      plugins: ['jeet']
    },