TEXTILE mills were the foundation of the industrial revolution and generated vast amounts of wealth across Britain.