Skip to content

Instantly share code, notes, and snippets.

@Joralf
Last active March 23, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joralf/41923d3a22245c8dbd5e790b9e58aeee to your computer and use it in GitHub Desktop.
Save Joralf/41923d3a22245c8dbd5e790b9e58aeee to your computer and use it in GitHub Desktop.
Komponent: image can't be loaded
<div class="test">
I should be blue with a background
</div>
<!DOCTYPE html>
<html>
<head>
<title>Myapp</title>
<%= csrf_meta_tags %>
<%= stylesheet_pack_tag 'entry' %>
<%= javascript_pack_tag "entry" %>
</head>
<body>
<%= yield %>
</body>
</html>
import './entry.scss';
import 'components';
@import './variables';
@import '../components/index';
import "components/test/test";
@import './test/test';
// No importing here, else there is no access to variables.scss
.test {
background-image: url('./test.jpg');
color: $test-variable;
}
$test-variable: blue;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment