Combine all dry ingredients in a large mixing bowl.
Melt coconut oil on stove or in microwave. Whisk in maple syrup and vanilla if using.
Pour wet mixture over dry mixture and mix thoroughly.
Press mixture into a baking pan, then bake at 160C for 20-25 minutes.
Allow to cool completely before breaking into small chunks. Store in an airtight container.