如何更改ember-cli中的dist文件夹路径?

时间:2014-07-14 17:25:51

标签: ember.js laravel ember-cli

我想在Laravel中使用ember-cli,我需要知道如何更改dist文件夹的路径。

3 个答案:

答案 0 :(得分:35)

您可以通过编辑位于项目根目录的.ember-cli文件来配置输出路径。

{
  "output-path": "my-output-folder/"
}

默认情况下,此值为" dist /"对于这两个' build'并且'服务'命令,如您在源代码中所示:

https://github.com/stefanpenner/ember-cli/blob/0b7dcf3a0cdb35114643b076c91afda79efda6fc/lib/commands/build.js

https://github.com/stefanpenner/ember-cli/blob/0b7dcf3a0cdb35114643b076c91afda79efda6fc/lib/commands/serve.js

答案 1 :(得分:11)

使用ember build时使用输出路径选项:

ember build --output-path=/not-dist

答案 2 :(得分:-2)

您还可以更改config / environment.js文件中的路径...

module.exports = function(environment) { . . . }

之外

<强> ENV.baseURL = '/your/new/path';

相关问题