These are chat archives for systemjs/systemjs

22nd
Aug 2015
λex Vincent
@alexisvincent
Aug 22 2015 14:37

Im making the following request

System.import(’sass/main.scss!css');

In essence I’d like to request an scss file with System, let the webserver compile scss to css and return a file containing css, then for the loader to continue with it as css.

Is there any way of doing this using the current css-plugin or would I have to implement my own loader?

At the moment this request successfuly executes, but returns an empty main.scss file, with the following log:
Resource interpreted as Stylesheet but transferred with MIME type text/x-scss:
Peter Müller
@Munter
Aug 22 2015 18:13
Maybe your middleware should send the compiled css with the right content type. Then it will transfer as text/css and I see no reason why the css loader shouldn't be able to work with it