그래서 저는 엠버 응용 프로그램에서 선제 적으로 플레이하고 싶습니다.ember-cli가 bower와 종속성을 추가합니다.
나는 그때
bower install typeahead.js
내가 코드가 bower_components에 투입 된 것을 볼 수 있습니다 운영하는 CLI의 응용 프로그램 및 실행을 얻을. 의 라인을 정자에 설치하고 추가 - - 나는 문서를 읽기에서
Uncaught ReferenceError: Bloodhound is not defined
을 얻을
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp();
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/typeahead.js/dist/typeahead.bundle.min.js');
module.exports = app.toTree();
가 작동하지 않습니다하지만 :
는그때하여 brocfile에 다음을 추가 brocfile은 그것을 만족시키기에 충분해야합니까? 내가 잘못 읽었습니까? 아니면이 버그입니까? 내가 한 짓을
https://github.com/wayne-o/ember-cli-bootstrap
은 다음과 같습니다 :
ember new bootstrap-test
bower install bootstrap
그리고 추가 :
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
을에
나는이 문제를 보여줍니다 공공 GIT의 REPO을 만들었습니다 브로크 파일 ...
작동하지 않았습니다.
typeahead.bundle.min.js에는 bloodhound가 포함되어야합니다. bloodhound.js 가져 오기를 시도하십시오. –
여전히 오류가 발생합니다 :/ – iwayneo
@drorb 문제를 수정하고 github에 repo를 추가하여 문제를 보여줍니다. – iwayneo