Mix the flour with baking powder, salt and coconut flakes. In another bowl, mix the coconut milk, egg and oil. Add the flour mixture to the coconut milk mixture and stir.
Finally, cut the pineapple into small pieces and fold into the dough.
Pour the batter into a muffin tray and bake for about 20-25 minutes.