Prep Time 20 minutes mins
Cook Time 18 minutes mins
Resting Time 30 minutes mins
Total Time 1 hour hr 8 minutes mins
For best flavor, ensure the pineapple is well drained so it does not make the cupcakes dense, and avoid overmixing the batter after adding the flour to keep them light and tender. Toasting the coconut adds extra flavor and a pleasant crunch, and you can make the cupcakes a day ahead, storing them covered at room temperature and frosting them just before serving. If using real rum, add it gradually and taste the frosting as you go to avoid overpowering the coconut and pineapple notes. For a neater look when piping, chill the frosting for about 10 minutes so it firms up slightly, and if baking in a warm kitchen, cool the cupcakes thoroughly so the frosting does not melt.