01 - Preheat oven to 350°F. Line a standard 12-cup muffin tin with cupcake liners.
02 - In a medium mixing bowl, whisk together all-purpose flour, baking powder, and salt until fully integrated.
03 - In a large bowl, beat softened butter and granulated sugar with an electric mixer until light and fluffy. Add eggs one at a time, beating thoroughly after each incorporation.
04 - Mix in the crushed pineapple, pineapple juice, milk, and vanilla extract until smooth and well blended.
05 - Gradually fold the dry ingredients into the wet mixture, mixing just until no visible streaks of flour remain. Avoid overmixing for optimal texture.
06 - Distribute the batter evenly among the prepared cupcake liners. Bake for 16 to 18 minutes, or until a toothpick inserted in the center comes out clean.
07 - Allow to cool in the muffin tin for 5 minutes, then transfer to a cooling rack and let cool completely before frosting.
08 - In a mixing bowl, beat softened butter and softened cream cheese until smooth and unified. Gradually add powdered sugar, beating on low speed after each addition. Incorporate pineapple juice, vanilla extract, and food coloring if desired, then beat on high until mixture is light and fluffy.
09 - Once cupcakes have cooled completely, generously frost each one using a piping bag if preferred. Garnish with dried pineapple flowers or maraschino cherries as desired.