Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap Ember cli忽略brocfile.js_Twitter Bootstrap_Ember.js_Ember Cli - Fatal编程技术网

Twitter bootstrap Ember cli忽略brocfile.js

Twitter bootstrap Ember cli忽略brocfile.js,twitter-bootstrap,ember.js,ember-cli,Twitter Bootstrap,Ember.js,Ember Cli,所以基本上我在这篇文章的主题中描述了我的问题:)。Brocfile.js的内容如下: var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp(); app.import('bower_components/bootstrap/dist/css/bootstrap.css'); app.import('bower_components/bootstrap/dist/js/bootstr

所以基本上我在这篇文章的主题中描述了我的问题:)。Brocfile.js的内容如下:

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

var app = new EmberApp();

app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff', {
    destDir: 'fonts'
});

module.exports = app.toTree();
但是当我放了一些没有意义的内容,比如


1--==++
我没有收到任何错误,因此我的推理是,ember cli没有给出有关此文件的详细信息:)。有趣的是,我刚刚更新了ember cli,现在它的版本是1.13.1(ember.js的版本是1.13.3),在更新之前,一切都正常

1.13.0的升级路径说明需要重命名该文件

Brocfile.js
已被弃用,取而代之的是
ember cli build.js
。有关如何将
Brocfile.js
代码转换为
ember cli build.js


我同意,它对此毫不在意;)是的,成功了:)。我的意见是,他们应该更加强调这一点-可能在
ember-upgrade
命令完成后设置一些信息,或者诸如此类。总之,某种类型的弃用警告会很好。