Chop the pineapple into about 10 chunks (no need to remove the core). Place into the jug of a Vitamix blender with the sugar, vinegar, ginger, salt, turmeric and chilli flakes. Blitz until soupy.
Pour the mixture into a large pot along with the star anise and place over a medium-high heat. Cook, stirring often, until it starts to bubble. Reduce the heat so it's just simmering and leave to bubble away, stirring every now and then to prevent it burning, for 45-60 minutes. It should be thick and slightly sticky.
Transfer the chutney to a sterilised jar before sealing and letting cool. Store in the fridge as it is less sugary than normal chutneys.