Importing CSS and controlling order in <head> using jspm and system.js

前端 未结 4 715
夕颜
夕颜 2021-02-08 12:14

I\'ve written the following in an Aurelia app

import \"bootstrap/css/bootstrap.css!\";
import \"./app.css!\";

and I want app.css second in sin

4条回答
  •  一个人的身影
    2021-02-08 12:52

    I've faced similar issue during development. The code below has helped me solve my problem. Now everything is loading exactly the way I want it.

    System.import('bootstrap/css/bootstrap.css!').then(() => {
      System.import('./app.css!');
    });
    

    Thanks LazerBass for this suggestion.

提交回复
热议问题