Skip to content

Instantly share code, notes, and snippets.

@ef4
Created July 30, 2016 07:17
Show Gist options
  • Select an option

  • Save ef4/c89a1f5c10e1bedbf7d2015971b04426 to your computer and use it in GitHub Desktop.

Select an option

Save ef4/c89a1f5c10e1bedbf7d2015971b04426 to your computer and use it in GitHub Desktop.
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var MergeTrees = require('broccoli-merge-trees');
var Funnel = require('broccoli-funnel');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
});
var appTree = app.toTree();
return new MergeTrees([appTree, new Funnel(appTree, {
files: ['index.html'],
getDestinationPath: function() {
return '404.html';
}
})]);;
};
@ef4

ef4 commented Jul 30, 2016

Copy link
Copy Markdown
Author

This shows how to copy index.html to 404.html after your regular app build has completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment