Skip to content

Instantly share code, notes, and snippets.

@madetech-com
Last active August 29, 2015 14:26
Show Gist options
  • Save madetech-com/744b603a21d15003f798 to your computer and use it in GitHub Desktop.
Save madetech-com/744b603a21d15003f798 to your computer and use it in GitHub Desktop.

The first application.scss.css

/*
 *= @import reset;
 *= @import 'components/**/*';
 *= @import 'pages/**/*';
 */

Sprockets renders as:

<html>
  <head>
  ...
  <link href="/assets/application.css?body=1" media="screen" rel="stylesheet" />
  ...
  <head>
  <body>...</body>
</html>

And this second application.scss.css

/*
 *= require reset;
 *= require_tree ./components;
 *= require_tree ./pages;
 */

Sprockets renders as:

<html>
  <head>
  ...
  <link href="/assets/reset.css?body=1" media="screen" rel="stylesheet" />
  <link href="/assets/components/example.css?body=1" media="screen" rel="stylesheet" />
  <link href="/assets/pages/example.css?body=1" media="screen" rel="stylesheet" />
  <link href="/assets/application.css?body=1" media="screen" rel="stylesheet" />
  ...
  <head>
  <body>...</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment