[英]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
. 使用Bower(不是余烬插件)添加库时,必须使用
app.import
手动将其添加到ember-cli-build.js
中。 For eg. 例如。 if I add a typical js library I have to add both the css and js files like:
如果添加典型的js库,则必须同时添加css和js文件,例如:
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?
有了我们用于前端开发的所有这些实用工具,肯定有吗?
我不知道如何自动化这些过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.