If you want to maintain staticresources using sdfx follow the below steps
- Create a folder
- Include all your files css, js, html etc
- Zip the folder and rename to .resource e.gfoo.resource
- Create “staticresources” folder in your workspace and move the .resource file under this newly created folder.
- create meta file e.gfoo.resource-meta.xml
<?xml version=”1.0″ encoding=”UTF-8″?><StaticResourcexmlns=”http://soap.sforce.com/2006/04/metadata”><contentType>application/zip</contentType><description>External library</description><cacheControl>Public</cacheControl></StaticResource>
6. Push to your sandbox
sfdxforce:source:push -f -u DevHub