These are chat archives for AngularClass/angular2-webpack-starter

18th
Nov 2015
Ben Radcliffe
@bradcliffe
Nov 18 2015 17:02
Has anyone successfully integrated Sass into this repo?
Matthew de Nobrega
@matthewdenobrega
Nov 18 2015 19:14
@bradcliffe I've got a fork of the repo which uses SASS - it requires the outputted CSS as a string on the component's styles attribute, which means you get the angular2 style scoping magic. That fork also loads the app in a web worker so I wouldn't clone it as such for a normal app, but the thinking in https://github.com/matthewdenobrega/angular2-webpack-starter/blob/master/src/app/app.ts and https://github.com/matthewdenobrega/angular2-webpack-starter/blob/master/webpack.config.js should be clear.
Ben Radcliffe
@bradcliffe
Nov 18 2015 20:19
@matthewdenobrega I've got sass-loader and node-sass installed, my webpack config set, and my stylesheet requiring correctly through my app.ts. The styles seem to apply, but the app itself breaks, throwing Error during instantiation of Token Promise<ComponentRef>. Not really sure what is happening there..
Matthew de Nobrega
@matthewdenobrega
Nov 18 2015 20:40
@bradcliffe are you sure it's the SASS that's causing the issue? Sounds like a missing import issue - angular/angular#4030
Ben Radcliffe
@bradcliffe
Nov 18 2015 22:16
@matthewdenobrega, looks like I was using styles when I should have been using styleUrls.