Created
July 30, 2016 07:17
-
-
Save ef4/c89a1f5c10e1bedbf7d2015971b04426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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'; | |
} | |
})]);; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This shows how to copy
index.html
to404.html
after your regular app build has completed.