01 - Preheat oven to 350°F (175°C) and line a standard muffin tin with 12 cupcake liners.
02 - In a medium bowl, whisk together the flour, baking powder, and salt until uniform.
03 - In a large bowl, beat the softened butter and granulated sugar together until light and fluffy. Add eggs one at a time, mixing well after each addition.
04 - Stir in the crushed pineapple, pineapple juice, milk, and vanilla extract until just combined.
05 - Add the dry ingredients to the wet mixture and gently fold together until just incorporated. Do not overmix.
06 - Evenly divide batter among prepared cupcake liners. Bake for 16 to 18 minutes, or until a toothpick inserted in the center emerges clean.
07 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
08 - Using an electric mixer, beat softened butter and cream cheese until smooth and cohesive. Gradually incorporate powdered sugar, beating on low speed until fully combined. Add pineapple juice, vanilla, and optional yellow food coloring, then beat on high until the frosting is light and fluffy.
09 - Once cupcakes are fully cooled, generously frost each with pineapple whip frosting. Garnish with dried pineapple flowers or maraschino cherries as desired.