Move oven rack to the middle position and preheat the oven to 350 degrees F.
Grease a 9x13-inch pan with nonstick cooking spray. Set aside.
MIX CAKE:
In a large bowl, whisk together flour, baking soda, salt, and sugar.
Add in eggs, vanilla, and crushed pineapple.
Use a rubber scraper to stir until combined.
Fold in chopped pecans.
BAKE AND COOL CAKE:
Pour the batter into the prepared pan and smooth it into an even layer.
Bake for 30-40 minutes, or until a toothpick inserted comes out clean.
Move cake to a wire rack to cool completely, about 45 minutes.
MAKE CREAM CHEESE FROSTING:
Add cream cheese and butter or margarine to a medium bowl. Use a handheld mixer and beat on medium-high speed until fluffy, about 1-2 minutes.
Add powdered sugar and vanilla and beat until combined and smooth, about 1-2 more minutes.
ICE AND GARNISH CAKE:
Use a rubber scraper or an offset spatula to ice the cake.
Garnish with chopped pecans and drained pineapple chunks (both optional).
SERVE:
Slice and serve or chill until ready to serve.
Video
Notes
SERVE: Slice and serve or chill the cake until you're ready to serve it.STORE: Cover and chill the cake for 5-6 days. Let the cake sit at room temperature for 15-20 minutes before serving. FREEZE: The frosting of this crushed pineapple cake does not freeze well, so if you'd like to freeze the cake, freeze it without the frosting. To do so, cover the cake with two layers of plastic wrap and foil. Freeze for 6-9 months. DEFROST: Defrost at room temperature for 3-4 hours before frosting and serving.