在ember-cli应用程序中添加css和js文件的位置?

rin*_*mon 2 ember.js ember-data ember-cli

在铁轨中,

js文件位于

app/assets/javascripts 
Run Code Online (Sandbox Code Playgroud)

同样在ember-cli应用程序中添加js和css文件的位置?

jel*_*han 7

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

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
Run Code Online (Sandbox Code Playgroud)

如果您需要外部JavaScript库,你应该在依赖部分进行管理package.jsonbower.json.您可能必须在构建中手动包含资产.这可以通过来完成app.import()ember-cli-build.js,或通过使用烬,自动导入.有关详细信息,请查看" 用户指南".

用户指南还包含有关ember-cli中文件夹布局的部分.