问题
In rails,
js files are located under
app/assets/javascripts
Similarly where to add js and css files in ember-cli app ?
回答1:
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
If you need external JavaScript libraries, you should manage them in dependency sections of package.json and bower.json. You may have to include the assets manually in the build. This could be done by app.import() in ember-cli-build.js or by using ember-auto-import. Have a look in the User Guide for more details.
User Guide also contains a section about folder layout in ember-cli.
来源:https://stackoverflow.com/questions/36481541/where-to-add-css-and-js-files-in-ember-cli-app