01 -
Preheat oven to 350°F (175°C). Grease a 9x13 inch baking dish.
02 -
In a large bowl, combine flour, sugar, eggs, baking soda, vanilla extract, salt, and crushed pineapple with juice. Mix until well incorporated.
03 -
Pour the batter into the prepared baking dish and bake for 35-40 minutes, or until the top is golden brown and a toothpick inserted in the center comes out clean.
04 -
Beat together the softened butter, cream cheese, and vanilla extract until smooth. Gradually incorporate confectioners' sugar, mixing until creamy.
05 -
While the cake is still slightly warm, spread the frosting evenly over the top. Sprinkle with chopped nuts and coconut flakes if desired. Allow to cool completely before serving.