Questions tagged «ember-cli»

9
在Ember.JS ember-cli应用程序中包含引导程序库的推荐方法
我正在尝试在当前的ember-cli项目中正确安装Twitter Bootstrap。我确实用bower安装了bootstrap: bower install --save bootstrap 现在该库位于/ vendor / bootstrap / dist /(css | js | fonts)中, 我尝试过这里提到的内容:http : //ember-cli.com/#managing-dependencies 替换路径和CSS文件名,但我得到了关于Brocfile.js文件的错误。与示例相比,我认为brocfile格式已更改太多。 在/ app / styles /目录中移动样式表之后,我还尝试使用/app/styles/app.css文件使用@import : @import url('/assets/bootstrap.css'); @import url('/assets/bootstrap-theme.css'); 但这没有用。这些文件是可见的真实开发服务器:http://localhost:4200/assets/bootstrap.css 有人可以在这里扔我一块骨头吗? 谢谢 编辑: ember -v ember-cli 0.0.23 brocfile.js /* global require, module */ var uglifyJavaScript = require('broccoli-uglify-js'); var …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.