Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does JSPM deal with CSS files?

I've been using bower for a while combined with wiredep but I want to switch to using the System.js loader. For this, JSPM is ideal. However, one of the things the combination of bower and wiredep was doing for me was also including the (S)CSS.

Does JSPM deal with these files at all? Or is there a different approach that I should take to also deal with those files?

like image 434
Robin_f Avatar asked Jul 07 '15 06:07

Robin_f


1 Answers

jspm install css

there is a plugin for this :)

for more infomation: https://github.com/systemjs/plugin-css


update: also, as @Ron said:

use it as <script>System.import('packageName/package.css!')</script>

like image 97
Ya Zhuang Avatar answered Oct 07 '22 05:10

Ya Zhuang