How to exclude a route and related files while ember build

Say, I have a repo with in-app add-ons and I want to create a route (say dev-docs) which will have docs/style guides on how to use those add-ons. So, while building my app, I want that route (dev-docs) and related *.css, *.js and *.hbs files to be excluded from /dist. I don’t want to host dev-docs separately as it becomes complex to maintain as the number of add-ons grow.

  1. You can use hooks to exclude files/folders from your build (e.g. preprocessTree):


  1. Use ember-cli-funnel addon to make your life easier: