javascript - Individual index.html files for each EmberApp -
i'm trying have 2 apps, related, have different access points server. ember build
returns on index.html
in dist/
. next setup:
/* global require, module */ var emberapp = require('ember-cli/lib/broccoli/ember-app'); var mergetrees = require('broccoli-merge-trees'); var app = new emberapp(); var viewer = new emberapp({ storeconfiginmeta: false, trees: { app: 'viewer', templates: 'viewer/templates', styles: 'viewer/styles' }, outputpaths: { app: { css: '/assets/viewer.css', js: '/assets/viewer.js' }, vendor: { css: '/assets/viewer-vendor.css', js: '/assets/viewer-vendor.js' } } }); app.import('bower_components/socket.io-client/socket.io.js'); viewer.import('bower_components/socket.io-client/socket.io.js'); module.exports = mergetrees([viewer.totree(), app.totree()], { overwrite: true });
i able specify html output path well, after looking around in https://github.com/stefanpenner/ember-cli/blob/master/lib/broccoli/ember-app.js i'm no smarter should do. using different configs, doesn't work configpath
.. errors:
enoent, no such file or directory '/users/user/project/tmp/tree_merger-tmp_dest_dir-fen1dz3z.tmp/project/config/environment.js'
ok, looks next version of ember-cli back upwards (current 0.1.2). see merged pr: https://github.com/stefanpenner/ember-cli/pull/2523
so isn't possible version, next, as:
app: { html: 'my-custom.html' }
edit
this feature introduced pr , released in v0.1.3, see changelog.
javascript ember.js build ember-cli
No comments:
Post a Comment