简体   繁体   中英

Automatically reference bower package in ember-cli-build.js

When you add a library using bower, that is not an ember addon, you have to manually add it to the ember-cli-build.js using app.import . For eg. if I add a typical js library I have to add both the css and js files like:

app.import('../path_to/library.min.js');
app.import('../path_to/library.min.css');

Question : Is there any way to automate this process? With all these nice utilities we have for front-end development, there must surely be?

我不知道如何自动化这些过程。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM