Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallbacks fail with Stylus + Gulp #36

Open
felipefialho opened this issue Mar 7, 2016 · 4 comments
Open

Fallbacks fail with Stylus + Gulp #36

felipefialho opened this issue Mar 7, 2016 · 4 comments
Assignees
Labels

Comments

@felipefialho
Copy link

Hi guys, I love the Rucksack, it's a fantastic plugin and I write a post in last year about it.

Congratulations to the creators.

But, I never can make the fallbacks: true works.

Today, I use Grunt + Stylus and my task is:

var rucksack = require('rucksack-css');

function postcss() {
  return require('poststylus')([rucksack({
    fallbacks: true,
    autoprefixer: true
  })]);
}
stylus: {
      options: { 
        use: [ 
          postcss 
        ],
        compress: false,
        'include css': true,
        paths: [
          'node_modules/grunt-contrib-stylus/node_modules',
          'node_modules/jeet/stylus', 
          'node_modules/rupture'
        ]
      }, 
      dev: { 
      }
    }, 

The autoprefixer is working perfectly, but the fallbacks does't works, when I use this option, the CSS isn't generated in Stylus.

Somebody have this problem?

@felipefialho felipefialho changed the title 'fallbacks: true' does't work 'fallbacks: true' does't works Mar 7, 2016
@madeleineostoja
Copy link
Owner

Hmm not sure what's going on here, as this is covered by unit tests. Will look into it more later today

@felipefialho
Copy link
Author

Thanks @seaneking, I need this to use REM in old browsers.

I am waiting some resolution and for now I going to keep without fallback, haha

@madeleineostoja madeleineostoja self-assigned this Mar 12, 2016
@gosteev
Copy link

gosteev commented Feb 4, 2017

had the same issue with gulp. fixed by writing function right inside use section:

.pipe(stylus({
  use: [
    require('poststylus')([rucksack({
      autoprefixer: true,
      fallbacks: true
    })])
  ]
}))

@madeleineostoja
Copy link
Owner

Looks like an issue with poststylus / stylus then - still not sure what would be causing it inside laggard (what fallbacks uses), but at least there's a workaround now. I'll leave this issue open for others, and if I get a chance at some point look into what's causing it more.

@madeleineostoja madeleineostoja changed the title 'fallbacks: true' does't works Fallbacks fail with Stylus + Gulp Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants