01 - Preheat oven to 350°F (175°C). Line a standard muffin tin with 12 cupcake liners.
02 - In a medium bowl, whisk together flour, baking powder, and salt.
03 - In a large bowl, cream together the butter and sugar until light and fluffy. Add eggs one at a time, beating well after each addition.
04 - Stir in the crushed pineapple, pineapple juice, milk, and vanilla extract until combined.
05 - Add the dry ingredients to the wet ingredients, mixing just until incorporated. Do not overmix.
06 - Divide batter evenly among cupcake liners. Bake for 16–18 minutes, or until a toothpick inserted into the center comes out clean.
07 - Let cupcakes cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
08 - For the frosting, beat butter and cream cheese together until smooth. Gradually add powdered sugar, beating on low speed until combined. Mix in pineapple juice, vanilla, and food coloring if using. Beat on high until light and fluffy.
09 - Once cupcakes are completely cool, frost generously. Garnish with dried pineapple flowers or maraschino cherries, if desired.