在ember-cli应用程序中添加css和js文件的位置? [英] Where to add css and js files in ember-cli app?

查看:134
本文介绍了在ember-cli应用程序中添加css和js文件的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在rails中,

js文件位于

app/assets/javascripts 

同样在ember-cli应用程序中添加js和css文件? p>

Similarly where to add js and css files in ember-cli app ?

推荐答案

app / styles / 应该包含你的样式表:

app/styles/ should contain your stylesheets:

Contains your stylesheets, whether SASS, LESS, Stylus, Compass, or plain CSS
(though only one type is allowed, see Asset Compilation).
These are all compiled into <app-name>.css

如果你需要外部JavaScript库,您应该在 package.json bower.json 的依赖部分中进行管理。在构建过程中包含资产在 ember-cli-build.js 中完成。有关详细信息,请参阅用户指南

If you need external JavaScript libraries, you should manage them in dependency sections of package.json and bower.json. Inclusion of assets in build process is done in ember-cli-build.js. Have a look in the User Guide for more details.

用户指南还包含有关文件夹布局在ember-cli。

User Guide also contains a section about folder layout in ember-cli.

这篇关于在ember-cli应用程序中添加css和js文件的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆