Preheat oven to 350F. Line an 8-inch square pan with parchment paper then grease with butter.
Melt butter,transfer to a mixing bowl, add sugar and mix well. Add egg and vanilla extract and mix well then add the flour and salt.
Fold in the coconut flakes and dried pineapple if using. You can add nuts or butterscotch, whatever you have on hand or feel like adding.
Pour batter in the prepared pan and bake for about 25 minutes.Let cool on a wire rack before cutting. Enjoy😊