Last active
July 1, 2018 11:35
-
-
Save Gaurav0/40bccb079229514d1cafefe88e27ab8b to your computer and use it in GitHub Desktop.
Sass Attempt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import scss from '../styles/app'; | |
export default Ember.Controller.extend({ | |
init() { | |
this._super(...arguments); | |
Sass.compile(scss, function(result) { | |
Ember.$('head').append(`<style>${result.text}</style>`); | |
}); | |
}, | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default ` | |
h1 { | |
color: blue; | |
span { | |
color: #00c; | |
} | |
} | |
`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.11.0", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.10.0", | |
"ember-data": "2.10.0", | |
"ember-template-compiler": "2.10.0", | |
"ember-testing": "2.10.0", | |
"sass.js": "https://cdnjs.cloudflare.com/ajax/libs/sass.js/0.10.3/sass.sync.min.js" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment