How to disable CSS imports in JSPM / SystemJS

拈花ヽ惹草 提交于 2019-12-06 16:54:03

Seems that JSPM prefers local package overrides rather than turning off CSS features completely.

The culprit of my original issue is Angular Material's package.json, which contains the following JSPM configuration:

"shim": {
    "angular-material": {
        "deps": [ "./angular-material.css!" ]
      }
}

So what really solved my issue was to override that configuration:

jspm install angular-material -o '{ shim: {} }'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!