Line an 8x8 pan with aluminum foil and spray with nonstick spray. Make sure foil hangs over edges to allow for easy removal of fudge.
Melt the chocolate chips in a microwave safe container on medium heat, stirring every 30 seconds, until fully melted and smooth.
Stir in coconut, butter, sweetened condensed milk, marshmallow fluff, salt, and extracts until well combined.
If using, add dried pineapple and stir until evenly distributed.
Pour fudge into pan and smooth top.
Cool in fridge for 3 hours or until set.
Remove fudge using the foil "handles".
Cut fudge into small squares and serve.
Store in an airtight container for up to a week.