Praise be to Allah, the Lord of the Worlds; and blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
No doubt that the rule of aims applies to their means too. Everything that leads to Haram is Haram. Muslim scholars have agreed upon prohibition of selling grapes to the one who makes wine since doing so is real cooperation in Haram activities. Allah Says (interpretation of meaning): {Help you one another in AlBirr and AtTaqwa (virtue, righteousness and piety); but do not help one another in sin and transgression.}[5:2].
It is narrated that a guardian of a land belonging to Saad Bin Waqqas (May Allah pleased with him) informed him that the crop of grapes was not in the condition to become raisins and not worth selling. It was only worth selling to the one who presses grapes for wine. Saad said: "What a bad man am I if I sell wine?"
On the above basis if the dress (revealing dress) is used only to expose the parts of body or the shape of body then selling it is not permissible. Hence it is a way to commit evil. If this kind of dress is used for legal purposes too, such as a woman wearing it for her husband only and no other men can see her, in this case the rule applies according to the use of this dress. If it is used for a legal purpose then it is allowed, otherwise it is not allowed.
But not selling this kind of dress is desirable. Know that it is not permissible for one to sell such dresses to the one who will use them in public.
Allah knows best.