How to exclude a route and related files while ember build


#1

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.


#2
  1. You can use hooks to exclude files/folders from your build (e.g. preprocessTree): https://ember-cli.com/api/classes/Addon.html

or

  1. Use ember-cli-funnel addon to make your life easier: https://www.npmjs.com/package/ember-cli-funnel