ng服务器没有输出任何CSS

时间:2017-03-11 22:19:29

标签: css angular

执行 ng服务器时,我正在使用 @ angular / cli css代码无论如何都不会出现在网页上。

这是angular-cli.json

{
  "project": {
    "version": "1.0.0-beta.18",
    "name": "botshop"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      "assets": [
        "assets",
        "favicon.ico"
      ],
      "index": "index.html",
      "main": "main.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.json",
      "prefix": "app",
      "mobile": false,
      "styles": [
        "../vendor/font-awesome/css/font-awesome.min.css",
        "../node_modules/bootstrap/dist/css/bootstrap.css",
        "../node_modules/metismenu/src/metisMenu.css",
        "./assets/css/sb-admin-2.min.css",
        "styles.css"
      ],
      "scripts": [
        "../systemjs.config.js",
        "../node_modules/core-js/shim.js",
        "../node_modules/zone.js/dist/zone.js",
        "../node_modules/reflect-metadata/Reflect.js",
        "../node_modules/systemjs/dist/system.src.js",
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/tether/dist/js/tether.js",
        "../node_modules/bootstrap/dist/js/bootstrap.js",
        "../node_modules/metismenu/src/metisMenu.js",
        "./assets/js/sb-admin-2.min.js"
      ],
      "environmentSource": "environments/environment.ts",
      "environments": {
        "dev": "environments/environment.ts",
        "prod": "environments/environment.prod.ts"
      }

    }
  ],
  "addons": [],
  "packages": [],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "css",
    "prefixInterfaces": false,
    "inline": {
      "style": false,
      "template": false
    },
    "spec": {
      "class": false,
      "component": true,
      "directive": true,
      "module": false,
      "pipe": true,
      "service": true
    }
  }
}

我已经输出了.js文件,但没有任何CSS。 我已将ng-cli升级到最新版本,我正在使用最后一个nodejs LTS

有什么想法吗?

0 个答案:

没有答案