Preheat oven to 350°F (175°C). Grease and flour two 8-inch cake pans.
In a bowl, whisk together flour, baking powder, baking soda, and salt.
In another bowl, beat butter and sugar until light and fluffy.
Add eggs one at a time, mixing well after each addition.
Stir in vanilla extract and crushed pineapple.
Gradually add dry ingredients, alternating with coconut milk, and mix until combined.
Divide the batter evenly between the cake pans and bake for 25-30 minutes or until a toothpick inserted in the center comes out clean.
Let the cakes cool completely before frosting.
Frost with coconut frosting and garnish with shredded coconut.