If a plugin doesn't define writeFile method, then it's not called during optimisation