I'm using PnP
GetProvisioningTemplate()
method to create Provisioning Template from existing site(have some document libraries with folders and files) and applying to newly created sites, using PnP
ApplyProvisioningTemplate()
Its working fine interms of creation and applying themes, CSS etc.,But its not copying contents of document library. Is there any way can include the library contents on template(XML)file. I'm following Link from OfficeDev