Gulp没有注入jquery ui主题css

时间:2015-08-28 13:42:12

标签: jquery jquery-ui gulp bower

我正在使用this来生成gulp应用程序。我在我的bower.json中添加了jquery ui,但由于一些奇怪的原因,jquery ui主题css不会自动注入。但是注入了JS文件。这是我的bower.json的样子:

{
  "name": "app",
  "version": "0.0.1",
  "dependencies": {
    "angular-cookies": "~1.3.16",
    "angular-sanitize": "~1.3.16",
    "jquery": "~2.1.4",
    "jquery-ui": "1.11.4",
    "angular-resource": "~1.3.16",
    "angular-i18n": "1.4.4",
    "bootstrap-sass-official": "~3.3.4",
    "angular-bootstrap": "~0.13.0",
    "malarkey": "yuanqing/malarkey#~1.3.0",
    "toastr": "~2.1.1",
    "moment": "~2.10.3",
    "animate.css": "~3.3.0",
    "angular": "~1.3.16",
      "angular-bootstrap-datetimepicker": "0.3.13",
    "ag-grid": "1.12.4",
    "nya-bootstrap-select": "~2.0.10",
    "angular-messages": "~1.3.16",
       "angular-ui-router":"0.2.15",
    "angular-translate": "2.7.2",
    "angular-translate-loader-url": "2.7.2",
    "angular-translate-loader-static-files" : "2.7.2"
  },
  "devDependencies": {
    "angular-mocks": "~1.3.16"
  },
  "resolutions": {
    "jquery": "~2.1.4",
    "angular": "~1.3.16"
  }
}

任何人都知道我错过了什么?

1 个答案:

答案 0 :(得分:2)

以下配置为bower.json为我工作:

"overrides": {
  "jquery-ui": {
    "main": [
      "jquery-ui.js",
      "themes/smoothness/jquery-ui.min.css"
    ]
  }
 }

这可能对某人有所帮助。

致以最诚挚的问候,