What is the meaning of Bag_wig?

An 18th-century wig, the back-hair of which was enclosed in an ornamental bag.

Source: wiktionary.org