Ember-cli moving files to an external folder

≡放荡痞女 提交于 2019-12-23 02:41:30

问题


So I have an ember CLI app that's in something like 'c:/foo/bar/ember' and want to have the final generated files copy to 'c:/foo/emberApp'.

When I do the broccoli build i get all the built files into c:/foo/bar/ember/dist. I'd like to pick some of these files and move them to c:/foo/emberApp. What's the best way to go about this? I've seen people use grunt but this would mean I lose the broccoli speed increase. My brocfile is just the basic ember-cli one, no modifications. I'll include below in case it's of any help.

Brocfile.js

var EmberApp = require('ember-cli/lib/broccoli/ember-app');


var app = new EmberApp({
    storeConfigInMeta: false
});


module.exports = app.toTree(); 

回答1:


You can pass the output-path argument to build like so ember build --output-path=/your/desired/path.

More info can be found in this section of the docs and in the source.



来源:https://stackoverflow.com/questions/28363120/ember-cli-moving-files-to-an-external-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!