Skip to content

Instantly share code, notes, and snippets.

@jescalan
Created November 8, 2013 19:41
Show Gist options
  • Select an option

  • Save jescalan/7376455 to your computer and use it in GitHub Desktop.

Select an option

Save jescalan/7376455 to your computer and use it in GitHub Desktop.
Getting stylus libraries into rails
  1. put gem stylus in your Gemfile.
  2. create an empty directory named node_modules
  3. run npm install your-lib
  4. make an initializer and add this text to it: Stylus.use('your-lib') if defined?(Stylus)
  5. make a new stylus file in your app/assets folder
  6. use your library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment