ember-cli meta config/environment file

前端 未结 1 976
予麋鹿
予麋鹿 2021-01-02 00:35

I\'m using ember-cli to structure my app.

It compiles all the files to the dist/ directory.

However as I inspected the compiled index.html

相关标签:
1条回答
  • 2021-01-02 00:57

    The ability to build your app without this was recently added in this PR

    You can set it up to be in your compiled JS output by passing in the storeConfigInMeta option. To opt-out, it should look like this in your Brocfile.js

    /* global require, module */
    
    var EmberApp = require('ember-cli/lib/broccoli/ember-app');
    
    var app = new EmberApp({
      storeConfigInMeta: false
    });
    
    module.exports = app.toTree();
    

    This is available in ember-cli 0.1.2 which is the latest version right now

    0 讨论(0)
提交回复
热议问题